View Full Version : Stop reading text file before EOF
Yvaine
05-27-2008, 07:47 AM
I am trying to read a text file with over 100,000 lines, but i realized that it stopped at line 32,767. Anyone could tell me the reason?
orange
05-27-2008, 08:53 PM
I am trying to read a text file with over 100,000 lines, but i realized that it stopped at line 32,767. Anyone could tell me the reason?
32767 is max size of integer variable.
Were you using a counter during this read?
If so, change the data type to double or long.
Tommy
05-28-2008, 10:04 AM
In addition to what orange has posted, you need to check for EOF.
While Not EOF(#FileNumber)
'Code for reading
Wend
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.