Re: line terminator

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

On Mon, 2004-10-11 at 09:41 -0400, George Walters 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).
> 
> george

Hi George,

integer crlf
if platform() = LINUX then
    crlf = 10
else
    crlf = 13
end if

just a thought...perhaps there's more to this

Regards,
-- 
h4x3r <h4x3r at bellsouth.net>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu