Re-2: Removing CRLF from text

Kay C Lan lan.kc.macmail at
Thu Aug 7 23:16:44 EDT 2008

On Thu, Aug 7, 2008 at 11:34 PM, Ken Ray <kray at> wrote:

> Actually IIRC, it's done this way to standardize *internal* interpretation
> on all the platforms (much like Rev standardizes on forward slash for path
> delimiters). That way, regardless of whether the host OS uses LF only, CR
> only or CRLF, when text data is read in from the outside it is all
> converted
> internally to use the LF character (ASCII 10). If you want to read in the
> actual end-of-line (EOL) delimiters, you can read the file in *as binary*:

Might then that explain why Mark Stuart could only get the 'binfile' version
of a solution to work.

Sarah and Jacque told him to replace  "+" & CRLF with "", but if what you
say is correct, then Rev has already removed CRLFs, no such combo should

Mark, although you seem to have got a solution with binfile, does it work
with 'file' but just replacing "+" & LF ?

Also agree that everything learnt from this thread should make it to the
newsletter. I volunteer Mark Stuart ;-)

More information about the use-livecode mailing list