Re: Getting Fortran to read CTRL/Z in a file as data
- From: Tom Wade <nospam@xxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Nov 2007 14:34:37 +0000
After the fortran read has seen the EOF, try to read the next line. If
that also is EOF, you found the real EOF (or the second ^Z in
succession).
If the next read gets normal data you can go on reading the file
Yes, this certainly works. The problem is when you hit two or more CTRL/Zs in successive lines. How many EOFs do you take to be definitive?
---------------------------------------------------------
Tom Wade | EMail: tee dot wade at eurokom dot ie
EuroKom | Tel: +353 (1) 296-9696
A2, Nutgrove Office Park | Fax: +353 (1) 296-9697
Rathfarnham | Disclaimer: This is not a disclaimer
Dublin 14 | Tip: "Friends don't let friends do Unix !"
Ireland
.
- Follow-Ups:
- Re: Getting Fortran to read CTRL/Z in a file as data
- From: briggs
- Re: Getting Fortran to read CTRL/Z in a file as data
- References:
- Getting Fortran to read CTRL/Z in a file as data
- From: Tom Wade
- Re: Getting Fortran to read CTRL/Z in a file as data
- From: Bob Gezelter
- Re: Getting Fortran to read CTRL/Z in a file as data
- From: Fekko Stubbe
- Getting Fortran to read CTRL/Z in a file as data
- Prev by Date: Re: Getting Fortran to read CTRL/Z in a file as data
- Next by Date: Re: system constants in COBOL
- Previous by thread: Re: Getting Fortran to read CTRL/Z in a file as data
- Next by thread: Re: Getting Fortran to read CTRL/Z in a file as data
- Index(es):
Relevant Pages
|