text file reading, FORTRAN

Huamei Yin huamei at UALBERTA.CA
Tue Jan 3 19:03:57 EST 2006


Hi,

Thanks for the reply. But I actually have tons of files to read. The files are
daily. So I cannot do it manually. And another issue is I have to display the
station names and my boss wants me to avoid special characters in the station
name.

Any other ideas? Thank you.

Huamei


> A simple solution is replacing all space with _
>
> Youhua
>
> On Tue, 3 Jan 2006, Huamei Yin wrote:
>
>
> Hi,
>
> I am reading a comma delimited text file. I used FORTRAN free format to read
> since the fields lengths change. It works well for most cases. But in some
> cases the station names have space in it and FORTRAN think space
> means the end
> of a field too, so it truncates the station name and the fields after
> that will
> be messed up. Dose anyone know how to solve this problem? Thank you
> very much.
>
> Happy New Year!
> Huamei
>



More information about the gradsusr mailing list