Re: Read DOS or Unix files with the same fortran code



tianyf@xxxxxxxxx wrote:

(snip)

I used Fortran to read/write ASCII files in FreeBSD, Solaris, and
Windows. There seems no problems. I suppose that the line-ending
difference between DOS and Unix sytles does not matter.

I am pretty sure C libraries will ignore '\r' in places where
white space is allowed. It seems possible, though less certain,
that Fortran will ignore them in the same places. List directed
input, in between input values, is one place where white space
should be skipped.

If '\r' appears where a printable character is expected in any
language the results are likely to be bad.

-- glen

.



Relevant Pages

  • Re: Pointers
    ... it doesn't matter if you have white space before or after the '*'. ... char* a, b; ... 'b' isn't a pointer but a simple char variable despite the '*' after ...
    (comp.lang.c)
  • Re: Help: Cannot acquire data by split
    ... to start your regex (not that it'll matter for speed as much as the ... results will be due to non tabs in the original example. ... but not on fields with a single white space? ... Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers ...
    (comp.lang.perl.misc)
  • Re: GRAPHICS INSERTION NOT VISIBLE ON DOCUMENT
    ... shows only as a white space, no matter the file format it is (JPG, TIFF, ...
    (microsoft.public.word.docmanagement)
  • Re: What is "white space" in HTML?
    ... White space is what separates the "interesting stuff" apart. ... "White space" is often found in HTML, ... "White space" means a gap, it doesn't matter how big the gap is. ...
    (alt.html)