1. reading a file

This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C1941E.D671DA80
	charset="iso-8859-1"

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

regards
--Talvitie

------=_NextPart_000_000F_01C1941E.D671DA80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello everybody!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I've never played so much with files so I got this 
very simple question:</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm reading a .txt file(I made it with windows 
notepad)&nbsp; into a sequence. After this I want to slice it in 
pieces.</FONT></DIV>
<DIV><FONT face=Arial size=2>Now what&nbsp;character means end of line? I need 
the number, like tab=9 and return=13</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>regards</FONT></DIV>

------=_NextPart_000_000F_01C1941E.D671DA80--

new topic     » topic index » view message » categorize

2. Re: reading a file

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 message » categorize

3. Re: reading a file

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 message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu