#include<conio.h> #include<fstream.h> #include<iostream.h> void main() { ofstream obj1; obj1.open("hello.txt"); obj1<<"hello"; obj1.close(); getch(); }
For Further Reading,
A complete Guide to learn Object Oriented Programming in C++
#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.
|
0 comments:
Post a Comment