"Program To Write Multiple Lines To FILE"
"Nice One Program"
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
void main()
{ clrscr();
ofstream obj("rvnow.txt");
obj<<"Hello its First line\n";
obj<<"Second line is here\n";
obj<<"Third Line is Here\n";
cout<<"File Written";
obj.close();
getch();
}
"Nice One Program"
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
void main()
{ clrscr();
ofstream obj("rvnow.txt");
obj<<"Hello its First line\n";
obj<<"Second line is here\n";
obj<<"Third Line is Here\n";
cout<<"File Written";
obj.close();
getch();
}
No comments:
Post a Comment