K
kathy
Read / Write to disk file is too slow. How to create a file in RAM
memory so that I could read / write to memory?
memory so that I could read / write to memory?
Read / Write to disk file is too slow. How to create a file in RAM
memory so that I could read / write to memory?
If you squint a bit the question is 'how do I make an fstream read/writered said:Did you have a C++ language question?
Read / Write to disk file is too slow. How to create a file in RAM
memory so that I could read / write to memory?
If you squint a bit the question is 'how do I make an fstream read/write
from/to memory?'
In which case the answer would be stringstream I guess...
kathy said:Read / Write to disk file is too slow. How to create a file in RAM
memory so that I could read / write to memory?
Read / Write to disk file is too slow. How to create a file in RAM
memory so that I could read / write to memory?
Michael said:If you just want a stream to memory, you can use rdbuf() method with a
stringbuf to write in a string or with your own streambuf (using non-
contiguous chunks of memory).
kathy said:Read / Write to disk file is too slow. How to create a file in RAM
memory so that I could read / write to memory?
How would that be different from using a stringstream?
Read / Write to disk file is too slow. How to create a file in RAM
memory so that I could read / write to memory?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.