title: error expected ';' before 'endl'
body: <p>I'm facing titled problem in my assignment. Please anyone help me as quick as possible.</p>
  
  <pre><code>/*
      member function of studentInfo class; store the value of all data members in 
      the text file named "record.txt", on separate lines in the text file.
  */
  void storeFile()
  {
     cout&lt;&lt; "All the data members are stored in file." &lt;&lt; endl;
     ofstream outFile;
     const char* outputFileName = "record.txt";
     outFile.open(outputFileName, ios::out);
     if(!outFile)
     {
         cout&lt;&lt; "\nUnable to open the file." &lt;&lt; outputFileName &lt;&lt; endl;
     }
     else
     {
         outFile vuID;
         outFile endl;
         outFile campusID;
         outFile endl;
         outFile studentName;
         outFile endl;
         outFile fatherName;
     }
  }
  </code></pre>