Creates,a,file,using,fstream

Yavuz 9/19/2016 0

Creates a file using fstream in c++

C++
//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;
}
 

Report Bug

Please Login to Report Bug

Reported Bugs

Comments

Please Login to Comment

Comments