Re: line terminator

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

On Mon, 11 Oct 2004 09:41:10 -0400, George Walters
<gwalters at sc.rr.com> wrote:

>What is the normal line terminator for ascii files (dos/win) CR, LF or both?
>
>I had a bug and found that the last line in the file had no CR, LF but 
>all the other lines had a CR. I'm wondering if I ported the files 
>incorrectly from brand x operating system. (Theos OS).
>
The last line of a file does not always have a line terminator.
Create a file in say notepad: Just enter "hello", - but do not key
return - and there will be no CR's or LF's anywhere in that file.

Regards,
Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu