Re: Write to file - another question
Re: Write to file - another question
- Subject: Re: Write to file - another question
- From: "Arthur J Knapp" <email@hidden>
- Date: Tue, 27 Feb 2001 20:24:24 -0500
>
From: email@hidden
>
Subject: Write to file - another question
>
Date: Tue, 27 Feb 2001 16:40:46 -0600
>
This has to do with using a text file created on a Mac on a windows box. When
I am writing to a file, and add a return to the end of a line like this
>
>
write return to file starting at eof
I've done this in an overly pedantic manner:
property kMac : "Mac"
property kUnix : "Unix"
property kWin : "Win"
property kMacEnd : return
property kUnixEnd : ASCII character 10
property kWinEnd : return & ASCII character 10
on writeln(fil, str, cr)
write (str & cr) to fil starting at eof
end
writeln( fileRef, "Hello World", kWin )
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
"...it's not my birthday,
it's not today..."
}