//P- 1 File Handling
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
void main()
{
clrscr();
ofstream out("message.txt");
char str[80];
cout << " Enter any string : " ;
cin.getline(str,80);
out << str;
out.close();
getch();
}
//P- 1 File Handling
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
void main()
{
clrscr();
ofstream out("message.txt");
char str[80];
cout << " Enter any string : " ;
cin.getline(str,80);
out << str;
out.close();
getch();
}
Comments
Post a Comment