View Single Post
Feb7-12, 08:53 AM   #5

Math 2012
 
Recognitions:
Science Advisor Science Advisor
Quote by jtbell View Post
If your data does have spaces at the ends of lines, and those spaces are significant, then AlephZero's method will not work for you.
Some compilers for older versions of fortran used to have a non-standard Q format, which returned the exact number of characters on a line including trailing spaces, but that isn't available in gcc fortran, for example.

On the other hand gcc fortran does have intrinsic functions FGetC and FPutC which will do I/O one character at a time, not one record (line) at a time.