Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  file2
Language: C/C++
Code:
#include <fstream>
#include <ofstream>

int main () {
  ofstream examplefile ("example.txt");
  if (examplefile.is_open())
  {
    examplefile << "This is a line.";
    cout<<endl;
    examplefile << "This is another line.";
    examplefile.close();
  }
  //return 0;
}
          
          
          
          
          
          
Comments: