If I'm iterating through a text file, reading one line at a time within a while statement, how do I check for the end of file. I tried while filename.eof and filename.eof() but to no avail? Colin