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



tianyf@xxxxxxxxx wrote:
I would like my fortran program to be able to read text files with
either Unix or DOS line endings..

The compilers that I hare used recently (mainly g77) have this capability for the compiler itself, but not in their
run-time libraries. Thus I don't have to pay attention DOS newlines in my code, but I do in the data files. Seems to me it should not be too hard to add this feature to the runtime I/O libraries as well (wish list).
.



Relevant Pages