CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    18

    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


  2. #2
    Join Date
    Aug 1999
    Location
    India-Delhi
    Posts
    106

    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

  3. #3
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    18

    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


  4. #4
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    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
  •  





Click Here to Expand Forum to Full Width

Featured