Darrell
Registered User.
- Local time
- Today, 12:37
- Joined
- Feb 1, 2001
- Messages
- 306
Hey Guys - I have a wee problem while trying to import a text file in that I get the Run-time error '62' Input past end of file error.
Now I know what is causing this but not how to fix it.....(I'm smart enough to know how dumb I am )
Basically, the text file is comprised of two rows for one record, and the second row is sometimes blank. I am using the "Line Input #1, MyLine" to go down to the second line and read it but, at the end of the file, if this second row is blank, I get the error when the "Line Input #1, MyLine" code tries to run.
What I need is to be able to see if this next line is blank and therefore skip trying to read it.
Any ideas greatly appreciated.
Cheers
Now I know what is causing this but not how to fix it.....(I'm smart enough to know how dumb I am )
Basically, the text file is comprised of two rows for one record, and the second row is sometimes blank. I am using the "Line Input #1, MyLine" to go down to the second line and read it but, at the end of the file, if this second row is blank, I get the error when the "Line Input #1, MyLine" code tries to run.
What I need is to be able to see if this next line is blank and therefore skip trying to read it.
Any ideas greatly appreciated.
Cheers