Page 1 of 1

read an entire file into a string variable

Posted: Tue Feb 28, 2006 3:27 pm
by blackdragonx896x
I'm trying to make a subprogram,

Code: Select all

void getfile(istream& in, string& theFile)
that can read an entire file into a string variable, including line breaks and i have no idea what im doing. I'm using Microsoft Visual Studio .NET 2003.
Thanks in advance for the help

Posted: Tue Feb 28, 2006 10:41 pm
by jussij
Since this is a forum for the Zeus editor and not so much a forum for any particular programming language, I think you will have more luck posting your question to a C++ forum using Google Groups ;)

Cheers Jussi