|
-
Apr 4th, 2009, 05:33 PM
#5
Re: Input past EOF
I think it reads input file wrongly...
input past end of file mostly occurs when there is and eof character within the content of the file
this can be resolved by opening the file for binary instead of input, as eof characters are just read as part of the file
alteratively if you know how many lines are in the input file, you can just loop for that number of lines, instead of until eof
for i = 1 to numberoflines
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|