ASCII Importer
right now im writing an ASCII file importer and i can only get so far into the file before the program crashes. the last two lines look like this:
*SCENE_TICKSPERFRAMEÑ—
160
(hopefully the last 2 characters show up on the end of the first line) do they look familiar? any way, i can only bring in 24 strings of characters. any ideas of where i should start looking first in my program? could it be the compiler messing up? i have made the file several times now and i know its not the file.
please can someone provide some insight.
thanks ahead of time.
-adam
Not really sure without code or anything, but two thoughts. First, make sure your memory is set up correctly, ie. you don''t have an array hardcoded to 24 lines. The other is appending a ''\0'' at the end of your lines. If you are printing out the text, and there isn''t a ''\0'', it may be trying to access memory beyond the end of the string. Just some thoughts.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement