#include #include using namespace std; int main(void) { ifstream file; //my file that I want to read char c; //open a file file.open("readFile.cpp"); //read the contents while(!file.eof()) { //extract a character c = file.get(); //print the character cout << c; } //close the file file.close(); return 0; }