Q:

expected unqualified-id before '{' token c++

I'm facing titled problem in my assignment at line 60. Please anyone help me as quick as possible.
59 void storeFile();
60 {
61 cout<< "All the data members are stored in file." << endl;
62 
63 ofstream outFile;
64 const char *outputFileName = ("record.txt");
65 outFile.open(outputFileName, ios::out);
66 
67 if(!outFile)
68 {
69      cout<< "\nUnable to open the file." << outputFileName << endl;
70      }
71 
72      else
73          {
74              outFile VUID; endl;
75              outFile campusID; endl;
76              outFile studentName; endl;
77              outFile fatherName; endl;
78                  }
79 };

error: expected unqualified-id before '{' token c++ at line 60

A:

Remove the ; at the end of line 59.
By the way, as ChrisCM and U2CO3 have written, the ; at end of line 79 is not needed, even if that one does not generate a compilation error.

