|
-
April 9th, 2010, 11:58 AM
#1
String in c++
I was storing a lot of things into my string, and it seems to have run out of memory. I have thought about using a array/vector of characters, however, I wish to retain the ability to do substring, and to read from a file into it. It is possible to read from a file into an array of characters (as in is there a method to do it?). If not, is there some sort of data storage that won't run out of memory, or dynamically changes size? (I hope that made sense. In short, I am running out of memory in my string and want an alternative)
Thanks in advance
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
|