pradeep | Date: Monday, 05 November 12, 5:12 PM | Message # 1 |
 pk
Group: Administrators
Messages: 82
Status: Offline
| #include #include #include int main() { ofstream fout; fout.open("xyz"); fout<<"curaj\n"; fout<<"\nmscs"; fout.close(); fout.open("abc"); fout<<"kishangrah\n"; fout<<"KKK\n"; fout.close(); int n =40; char line[n]; ifstream fin; fin.open("xyz"); cout<<"\t\t ------- [ Its make by pkhighfile ]-------\n\n"; cout<<"content of xyz is\n"; while(fin) { fin.getline(line,n); cout< } getch(); return 0; }
|
|
| |