This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, Mark, thank you very much for your
message.
I tried your code with 3 data files that contain
the same two line data but edited with cat, vi, and Notepad respectively. And
found that only the data file edited by vi gives the correct results for two
lines. The other two only give the correct results for the last line. I did not
hit the 'return key' at the end of last line for all 3 data files.
It seems fortran read on cygwin interpret the end
of line differently for data files edited by cat and Notepad.
Mark's code and test files are
attached.
Again, thanks for Mark's help.
Xinan
|
Attachment:
test_read.f
Description: Binary data
Attachment:
test.vi
Description: Binary data
Attachment:
test.txt
Description: Text document
Attachment:
testcat.dat
Description: Binary data
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |