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]

Re: [Fwd: fortran read problem]


Title: RE: [Fwd: fortran read problem]
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
----- Original Message -----
Sent: Thursday, June 13, 2002 1:23 PM
Subject: RE: [Fwd: fortran read problem]



> -----Original Message-----
> From: Xinan Zhou [mailto:zhoux@lifepredictiontech.com]
> Sent: Thursday, June 13, 2002 12:38 PM
> To: cygwin@cygwin.com
> Subject: Re: [Fwd: fortran read problem]
>
>
> Hi,
>
> Can I safely say that it is a bug that fortran read(1,
> '(a132)') on cygwin
> cannot read an entire line properly from a data file edited
> by Notepad or
> vi?
> Or it is my mistake that I miss setting up something?
>
> Thank you and have a nice day!
>


No, it isn't a problem with cygwin and g77...

It is a problem with your source code.  I sent you
more info in a separate email...

--Mark

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]