Re: Getting Fortran to read CTRL/Z in a file as data

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
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 !"