Click to See Complete Forum and Search --> : Out of string space
Lynn
December 5th, 1999, 06:16 AM
Hi, I tried to get data from a 4M byte .dat file and insert these data line by line into a database table using the 'line input' method. However, when the program get to the 'While Not EOF(#filehandler)' portion, the error 'Out of string space' occurs. I tried the same method with smaller file size and it was successful. How do I deal with this problem?
Thks.
Lynn
santulan
December 5th, 1999, 06:24 AM
Lynn,
Just check if dat file in question is NOT corrupt???
Can you type it in simple DOS prompt. or can you load in MS word as text file.
Santulan
Lynn
December 5th, 1999, 06:36 AM
Hi Santulan,
there is no problem with loading the dat file as text file in MS word...so I guess the problem does not lie in the file being corrupt...
Lynn
Ravi Kiran
December 6th, 1999, 05:08 AM
Is it a Text/ascii data or binary data?
Line input works only for text data. (Usually .dat files are Binary!!, well.. "usually" ).
If it is text, may be the last line doesn't contain the EOF marker or a Carriage return!Put a break pt and check if it is at the last line...
RK
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.