#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void main()
{ clrscr();
char word;
ofstream obj;
obj.open("tanuj.txt");
cout<<"Enter name \n";
do
{ word=getche();
obj<<word;
} while(word!=';');
cout<<"Thankyou for entering data ";
obj.close();
getch();
}
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void main()
{ clrscr();
char word;
ofstream obj;
obj.open("tanuj.txt");
cout<<"Enter name \n";
do
{ word=getche();
obj<<word;
} while(word!=';');
cout<<"Thankyou for entering data ";
obj.close();
getch();
}
No comments:
Post a Comment