is the value of CR really platform dependant?

Bill Vlahos bvlahos at
Fri Aug 30 12:27:01 EDT 2002


Are you saying that if I use "open file tMyFile for text read" all the 
platforms will do the right conversion regardless of the format of the 
text file (LF, CR, or CRLF)?

Using the get URL("file:"&tMyFile) Linux and Solaris platforms don't 
work properly with CR delimited text files. What I have found is that 
if the text file is unix formatted linefeed delimited, then all of the 
platforms can read them correctly. It was a pain to figure this out.

If the open...for text read is the does everything right, then it is 
the holy grail we have been looking for.

Do I have it correct?


On Friday, August 30, 2002, at 09:48  AM, Richard Gaskin wrote:

> As text:
>   open file tMyFile for read
>   - OR -
>   open file tMyFile for text read
>   - OR -
>   put url ("file:"&tMyFile) into tMyData
> As binary:
>   open file tMyFile for binary read
>   - OR -
>   put url ("binfile:"&tMyFile) into tMyData
> If you read in text mode, the line endings are handled for you 
> automatically
> on all platforms.

More information about the Use-livecode mailing list