Read from a file to a string
Hello I am new to C++ and i have the new visual c++ .net
i was woundering if someone could let me know a simple way to read from a *.txt file and put it into a string or a string array one line at a time. if someone could give me some sample code that would be great!
Thanks ahead of time
Re: Read from a file to a string
Quote:
Originally posted by Buy2easy.com
Hello I am new to C++ and i have the new visual c++ .net
i was woundering if someone could let me know a simple way to read from a *.txt file and put it into a string or a string array one line at a time. if someone could give me some sample code that would be great!
Thanks ahead of time
Do you search at all before you post? Check out the FAQ or do a search first. You'll be surprised at what you find, especially with a question like this.