I think I figured it out:
I then used a for loop to search through everything read by the above function until I found matches then just stored that data in different member variables that I added to the original student class.
ClassData searchRecords(ClassData &obj, long recordNum)
ifstream fin(FILE_NAME2, ios::in | ios::binary);
cout << "Cannot open file.\n";
fin.seekg(sizeof(ClassData) * recordNum, ios::beg);
fin.read((char *) &obj, sizeof(ClassData));
cout << "A file error occurred.\n";
Thanks for the help!