Hello All,
Can I use cin.getline(x,y) to read a line from a file?
What is the form of cin.getline(x,y) when used with files?
What I need to do is to output what I have written to a file to the console.
I have the file open, using ofstream, and I save names to it. Then I close the file and re-open it, using ifstream, and want to read what I have saved to it.
Thanks a lot for any suggestions.