|
-
December 5th, 1999, 07:16 AM
#1
Out of string space
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
-
December 5th, 1999, 07:24 AM
#2
Re: Out of string space
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
-
December 5th, 1999, 07:36 AM
#3
Re: Out of string space
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
-
December 6th, 1999, 06:08 AM
#4
Re: Out of string space
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
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
|