I have simple text file loaded into memory. I want to read from memory just like I would read from a disc like here:
ifstream file; string line; file.open(\
Use
std::stringstream
It has an interface to manipulate and read strings just like other streams.