Re: Infinite array size???
Perhaps you should consider to only read portions of the file at one time, process it and then read some more.
Originally posted by Trauts
I want it to be able to handle insanely large number of characters in a string, and then overwrite the text with the output.
If you really mean insanely large, remember that most implementations of fstream has a 2-4 GB file size limit (actually this has caused me some trouble) and you can never allocate more than 4 GB memory on a windows system (Win32, that is, win64 is not very common).