When is 10 really 13?

Thierry Douez th.douez at gmail.com
Thu Dec 5 09:13:56 EST 2013


Hi MIke,

Opening your text file in *binary" mode :  "binfile:whatever"
then with the replace() function , get rid of what you don't want...

Does that help ?

Thierry


------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage


2013/12/5 Mike Kerner <MikeKerner at roadrunner.com>

> I know that LC has this affinity for <LF> (ascii 10) instead of <CR> (ascii
> 13), but in this case it's going to be a problem.
>
> I am trying to parse a text file that is output from another system.  When
> LC reads the file, it automatically interprets all the <CR>'s as <LF>'s.
>
> Thinking I was batty, I grabbed several other development tools that I
> use.  Each and every one of them said that what LC said was an <LF> was
> really a <CR>, so just to be sure I went to the source of the file, and
> sure enough it is putting out <CR>.  Reading further through the code, it
> appears that there are cases where both <CR> and <LF> are going to be
> output, and the differences are significant to properly handling the data.
>
> SO, do we have a way of dealing with this that I am not aware of?
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>    and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the Use-livecode mailing list