[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: comments, line numbers and storing a file in a single string
- From: Terry Bayne <tbayne@...>
- Date: Tue, 11 Dec 2007 12:31:29 -0500
> Stefan Sandberg escribió:
>> ...which means your line breaks are missing.
> line breaks? Do I need DOS like line breaks?
You need line breaks for whatever kind of system your using (unix or Dos/Win as appropriate). With out them, the interpreter sees a single line. And will report any error to be on that line.
When reading in your files, add a line break appropriate to your system after each line, before you store that line in the string that will contain the file. That way at least the error messages will be more useful.
Does that help?