I want to get the contents of a file, but the only way I know how to do that is
But that's if you want to output it. I want to use the contents of the file as a string for operations.Code:infile.open ("filepath", ifstream::in); while (infile.good()) cout << (char) infile.get(); cout << "\n" ; infile.close();