File handling in c++
CODE:
#include<conio.h>
#include<fstream.h>
#include<iostream.h>
void main()
{
ofstream obj1;
obj1.open("hello.txt");
obj1<<"hello";
obj1.close();
getch();
}
Article by +Jasmeet Singh
Chief-Editor
He is a tech Enthusiast, an Altruist and calm mentor. He loves to code. He is also a creative graphic designer. Do check out his designfolio @ Jasmeet.asia If you like This post, you can follow me on Twitter.
For Further Reading,
C++ Program
0 comments:
Post a Comment