Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  line
Language: C/C++
Code:
#include <fstream.h>

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