For Programmers: Free Programming Magazines  


Home > Archive > Fortran > June 2004 > Re: gnu fortran and reading file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: gnu fortran and reading file
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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com