Re: Read DOS or Unix files with the same fortran code
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 01:26:56 -0800
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
.
- References:
- Read DOS or Unix files with the same fortran code
- From: feenberg
- Re: Read DOS or Unix files with the same fortran code
- From: tianyf@xxxxxxxxx
- Read DOS or Unix files with the same fortran code
- Prev by Date: Re: dynamic filename string
- Next by Date: Re: Parallelization on Dell Workstations
- Previous by thread: Re: Read DOS or Unix files with the same fortran code
- Next by thread: Re: Read DOS or Unix files with the same fortran code
- Index(es):
Relevant Pages
|