This program running perfectly.. i just need 1 more thing.. which i cannot able to do .. and i have no idea of it.

Its Creating Excel file .csv ..

like if

5) Search Student information

in that " Enter the enroll no. : "

and as soon as user enters the enroll. no . its searches full details of that
enroll. no.

So Basically i want full line to get searched out when enroll no. is entered of that particular student.

Please help me out of this. If you need any more information then let me know!!




Code: 
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<string.h>
#include<stdlib.h>
#define SIZE 2000
int main()
{

     clrscr();
     char Inputline[50],Outputline[50],k,fname[20],ch[20],dc;
     char text[SIZE],delimeter=',';
     int n;
     while(k=='Y' || k=='y');
     {
          start:
          clrscr();
          cout<< "\n\t MCA RESULT ANALYSIS - REMEDIAL";
          cout<< "\n\t ------------------------------";
          cout<< "\n\t 1. Enter Student's Data From C++ To Excel";
          cout<< "\n\t 2. Read Student's Data From Excel To C++";
          cout<< "\n\t 3. Add New Student's Record ";
          cout<< "\n\t 4. Exit";
          cout<< "\n\t ------------------------------";
          cout<< "\n\n\n Enter the choice :";
          cin>> n;
          switch(n)
          {
        case 1:
             create:
             clrscr();
             cout<<"\n Here Excel .csv File is Created Using c++ ";
             cout<<"\n----------------------------------------------";
             cout<<"\n\n Enter the filename to create file : ";
             cin>>fname;
             ofstream MCA_StudFile_Out;
             MCA_StudFile_Out.open(fname,ios::noreplace);
             if(!MCA_StudFile_Out)
             {
               cout<<" \n\nFilename Already Exists... ";
               cout<<"\n\n Do you want to continue (y / Y)";
               cout<<"\n\n Go to Main Menu (m / M) :";
               cin>>k;
               if(k=='M' || k=='m')
               {
                goto start;
               }
               else if (k=='y' || k=='Y')
               {
                goto create;
               }
               }
               MCA_StudFile_Out.close();
               cout<<"\n\n\n Write Data In File "<<endl;
               cout<<"--------------------------"<<endl;
               ofstream MCA_StudFile_In;
               MCA_StudFile_In.open(fname,ios::app,ios::ate);
               cin>>Inputline;
               MCA_StudFile_In<<Inputline;
               cout<<"\n\nFile Created successfully....";
               MCA_StudFile_In.close();
               break;
          case 2:
              //clrscr();
              read:
              cout<<"\n\nRead Student's Data From Excel To C++";
              cout<<"\n\n--------------------------------------";
              ifstream MCA_StudFile_Outt;
              cout<<"\nEnter the file name to read file:";
              cin>>fname;
              MCA_StudFile_Outt.open(fname,ios::noreplace);
              if(!MCA_StudFile_Outt)
              {
             cout<<"\n\n File not found... ";
             cout<<"\nDo you want to continue?";
             cout<<"\nEnter Y/y to continue OR M/m to go Main Menu: ";
             cin>>k;
             if(k=='M' || k=='m')
             {
               goto start;
             }
             else if(k=='y' || k=='Y')
             {
              goto read;
             }

              }
              else
              {
             cout<<"\n\nFile is open Successfully..."<<endl;
              }
              cout<<"\n\n";
              while(MCA_StudFile_Outt.good())
              {
            for(int i=1;i<=95;i++)
            {
                MCA_StudFile_Outt.getline(text,SIZE,delimeter);
                cout<<text<<"\t";
            }
            cout<<endl;
              }
              MCA_StudFile_Outt.close();
              break;

           case 3:
              cout<< "\n ADD NEW STUDENT RECORDS ";
              cout<< "\n-----------------------------";
              cout<< "\n\n Enter the filename to open :";
              cin>>fname;
              ofstream MCA_StudFile_Ouut;
              MCA_StudFile_Ouut.open(fname,ios::app,ios::ate);
              cin>>Inputline;
              MCA_StudFile_Ouut<<Inputline<<endl;
              cout<<"\n\n New Record Added Successfully...";
              MCA_StudFile_Ouut.close();
              break;

        }
        cout<<"\n\nDo you want to continue?";
        cout<<"\n\nEnter Y/y to continue , N/n to exit :  ";
        cin>>k;
        if(k=='Y' || k=='y')
        {
            clrscr();
            goto start;
        }
        else
        {
            exit(1);
        }
      }

      getch();
      return 0;
}
googleplus Reviewed by googleplus on . C++ string search help needed This program running perfectly.. i just need 1 more thing.. which i cannot able to do .. and i have no idea of it. Its Creating Excel file .csv .. like if 5) Search Student information in that " Enter the enroll no. : " Rating: 5