fork download
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. int main() {
  6. ifstream file("output.txt");
  7. string line;
  8.  
  9. while (getline(file, line)) {
  10. cout << line << endl;
  11. }
  12.  
  13. file.close();
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty