PDA

View Full Version : putting a whole file into a string array


neonoodle
09-30-2005, 01:15 AM
Hey all,

I wrote a function that puts a file into a string array, but the array doesn't seem to be big enough to fit the whole file, so it just cuts it off at a point. Is there any way to make the array bigger or a better way of getting the contents of a whole text file so that I can read the data within my scene?

swardson
09-30-2005, 05:52 AM
im not sure why you would want to bring a whole file into a single array.

But you could consider just reading in each line of the file one at a time and dealing with that line as you see fit.

If you describe more of what you are trying to do I might be able to help you more.

Brad

CGTalk Moderation
09-30-2005, 05:52 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.