#include #include using namespace std; int main(){ ifstream input_file; input_file.open("file_input.cpp"); char c; while(!input_file.eof()){ // NOTE: This will NOT read in newlines, so they will go away. // Same with some other whitespace // You could use getline if you wanted to print the file out correctly // But for lab 4, all we need is the regular characters anyway input_file >> c; cout << c; } input_file.close(); return 0; }