Re: reading a file

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi,

Well, it depends which environment are you using (or text was 
built). If your platform is Windows (or DOS) then you have to look 
for a CR+LF (0Dh+0Ah). If you're on Linux (Unix) then it's only LF 
(0Ah). In other hand we have Macintosh that uses only CR (0Dh) at 
line end. You should test to see what you're finding before choose 
the right algorithm.

Cheers!

-- Euler


On 3 Jan 2002, at 1:51, Kat wrote:

> 
> On 3 Jan 2002, at 6:21, tapueu at hotmail.com wrote:
> 
> > 
> > Hello everybody!
> > 
> > I've never played so much with files so I got this very simple question:
> > I'm reading a .txt file(I made it with windows notepad)  into a sequence.
> > After
> > this I want to slice it in pieces. Now what character means end of line? I
> > need
> > the number, like tab=9 and return=13
> 
> Could be 10 or 13 or both.
> 
> Kat
> 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu