Reading Lines of Text from File Until EOF...
Reading Lines of Text from File Until EOF...
- Subject: Reading Lines of Text from File Until EOF...
- From: "Robert B. Parker" <email@hidden>
- Date: Tue, 30 Jan 2001 07:39:19 -0700
I've searched the archives, but haven't found exactly what I'm looking for,
so I thought I'd ask the group...
I have a text file that I want to read data out of. Each line of the data
file has the exact same number of characters in it and I've already got my
script to the point where it can parse out the info it needs from each line
of text.
My script is also acquiring each line of text from the file - sort of. The
problem I'm having is having the script gracefully close the file and exit
when it has hit the End of File (EOF).
If anyone has some sample code they could send my way (email@hidden)
I'd GREATLY appreciate it.
Thanks!!!