memorystream

S

Severin Ecker

hi!

i just wanted to ask if there's something like a memorystream in the stl?
what i have in mind is, e.g. you can use an ifstream to open and operate on
a file, but what if the file is already in memory, so i was thinking if
there's anywhere some stream i can associate with a bunch of memory and use
all kinds of stream-reading functions.

thx in advance.
regards,
sev
 
J

Jon Bell

i just wanted to ask if there's something like a memorystream in the stl?

Check out istringstream, which reads from a std::string, and istrstream,
which reads from a char array.
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,427
Latest member
HildredDic

Latest Threads

Top