Saturday, December 11, 2010

Writing In a File

#include<iostream>
#include<fstream> // for file handling
unsing namespace std;
int main()
{
     ofstream out; // declaring a variable
     out.open("file.txt"); // opening the file 
 
  
     out.close(); // closes the file
     return 0;
}

No comments:

Post a Comment