Sunday, 20 May 2018

"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();

}







No comments:

Post a Comment