When is 10 really 13?

Mike Kerner MikeKerner at roadrunner.com
Thu Dec 5 09:40:46 EST 2013


So, aside from this situtation, when else will <CR> be <LF> in the LC
universe?  Like I said, I know LC likes <LF>, but if it's substituting one
for another, that's a problem.


On Thu, Dec 5, 2013 at 9:13 AM, Thierry Douez <th.douez at gmail.com> wrote:

> 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
> >
> _______________________________________________
> 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
>



-- 
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."



More information about the use-livecode mailing list