Page 83 - INTRODUCTION_TO_C++_Neat
P. 83

FILE READ OPERATION

 #include<conio.h<
   #include<fstream.h<
   int main()
   {
     char c,fname[10]; cout<<"Enter file
     name:"; cin>>fname;

   ifstream in(fname(;
             if(!in)

       {
       cout<<"File Does not Exist"; getch();

       return 0;
   78   79   80   81   82   83   84   85   86