Re: Re[2]: reading a file

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

Kat wrote:

> What about the last line in a text file that may
> not end in a CR or a NL ?

Good point. Some editors (like SciTE) don't put a CR/LF on the last line.

I got bitten by this bug a couple weeks ago with an interpreter that I had
written. The user was reporting odd errors that I couldn't duplicate, until
it occured to me the last line of code wasn't being parsed.

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu