101
{ USER }
posts: 55
last: 09-Apr-2008
TITLE: Creating a file using fstream
DESCRIPTION: Creating a file using fstream
Submitted: 09-Apr-2008 07:55:50 ( 21w 5d 3h ago ) Language: C++ (*.cpp *.h)
Views: 158 Lines of Code: 19 LINES
Rating:
rate: star1
star2
star3
star4
star5
dstar1
dstar2
dstar3
dstar4
dstar5  ( rated! )
  { 0.00 / 5 }
Difficulty: Intermediate
Bookmark
/* Author: 101
   Date: 09-04-2008
   Filename: 
   Description: Create a file using fstream
   History: 
*/


//this example creates a file called myfile.txt
//and adds some text message to it
#include <fstream.h> 
int main()
{
ofstream MyFile("myfile.txt");
MyFile<<"This is some test message";
MyFile.close();

return 0;
}