M
markspace
Hi all,
Here's a question I haven't been able to answer on my own. I want to
read in the entire contents of a file into some structure in memory then
process it. Like for example read an image into memory, then display it.
Is there an easy way to read an entire file into memory in C++? I'd
like to read it into an Array of some type, but anything would do. I'd
like the result to be contigous in memory (important!) and fairly
efficient. Strings might work but it's not really a string that I'm
after, more of an array of byts kind of model.
Any suggestions?
Here's a question I haven't been able to answer on my own. I want to
read in the entire contents of a file into some structure in memory then
process it. Like for example read an image into memory, then display it.
Is there an easy way to read an entire file into memory in C++? I'd
like to read it into an Array of some type, but anything would do. I'd
like the result to be contigous in memory (important!) and fairly
efficient. Strings might work but it's not really a string that I'm
after, more of an array of byts kind of model.
Any suggestions?