How to make unknown size arrays?
How would I go about making an array that increases it's own size if needed (not unlike 'char *argv')?
Let me give you a bit more info. I'm trying to fread() a text document into an array, but of course text documents vary in content. So if I set, say 'char array' then it will only be able to take 49 chars. So I was wondering if it was possible to either:
1. Make an 'unknown size' array, that increases as needed.
2. Make an array, then it increases itself as needed (like Add() in MFC)
to no avail. Any help would be much appriecated.