Sunday, 27 November 2011

C++ Program For File Handling


#include<iostream.h>
#include<conio.h>
#include<fstream.h>
void main()
 {
   ifstream ob("d:/myfile.txt");
   char c;
   do
    {
 ob>>c;
 cout<<c;
}while(!ob eof());
ob.close();
 }

No comments:

Post a Comment