| Hans-Bernhard Broeker 2004-06-17, 8:57 am |
| leup <leup@noooospam.com> wrote:
> it seems that the problem come from a lack of a newline at the end of the
> last line. But the file my app must read can be without this newline at the
> last line.
Then whatever app created that file is buggy. It's as plain and
simple as that. So odds are you're trying to fix the wrong end of the
problem.
AFAIK, a "text file" is required to end in a line ending, by all
applicable definitions of the term. The only thing allowed to follow
it would be a literal in-line EOF marker, if the platform uses/needs
them (e.g. MS-DOS and CP/M's Ctrl-Z). So any tools generating such
files (including text editors and text filtering tools) would have to
be considered bug-ridden.
--
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
|