text processing
- From: "Dylan Sung" <dylanwhs.tsktsktsk@xxxxxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 21:46:18 +0100
Can anyone tell me how one can find the end of a line of text that comes from a sequential file in f77? The trailing blanks when reading a line is annoying, for instance
c234567
character*80 line
open(1,file='data.txt')
read(1,1)line
1 format(a)
stop
end
where the data in the text file is
abcde
and the rest is just blank, or sometimes, the line is longer than 'line' and just gets truncated...
I want to find the end of the line without the truncation, is there a way to do it?
Many thanks.
Dyl.
.
- Prev by Date: Re: comment and IBM xlf
- Previous by thread: Stack size, and warnings
- Index(es):