ifstream myReadFile; myReadFile.open("text.txt"); char output[100]; if (myReadFile.is_open()) { while (!myReadFile.eof()) { myReadFile >> output; cout<<output; } } myReadFile.close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)