fork download
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4. int main() {
  5. fstream hand;
  6. hand.open("ttt.txt");
  7. hand <<"this is file name";
  8. hand.close();
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
Standard output is empty