I am reading in from a file and storing that information to a custom class List which is a linked list of type Node. However when I go to return the list it only returns the ints and drops all of the strings and the vector.
List & importMaster()
{
    fstream file;
    int i = 0, check = 0;
    Node students[10];
    List master1;
    char temp[200];
    file.open("master.txt", ios::in);
    while (!file.eof())
    {
        file.getline(temp,50);
        int recordNum = atoi(temp);
        file.getline(temp, 40);
        int ID = atoi(temp);
        file.getline(temp, 40, '"');
        file.getline(temp, 40, '"');
        const string name = temp;
        file.getline(temp, 40);
        file.getline(temp, 40);
        string email = temp;
        file.getline(temp, 40);
        int units = atoi(temp);
        file.getline(temp, 40);
        string program = temp;
        file.getline(temp, 40);
        const string level = temp;
        file.getline(temp, 40);
        int numAbscence = atoi(temp);
        vector <string> absences;
        for (int j = 0; j < numAbscence; j++)
        {
            file.getline(temp, 40);
            absences.push_back(temp);
        }
        //gets extra line between 
        file.getline(temp, 40);
        students[i] = Node(recordNum, ID, name, email, units, program, level, numAbscence, absences);
        if (i > 0)
        {
            students[i].setNextNode(&students[i - 1]);
        }
        master1.setMaster(&students[i]);
        i++;
    }
    return master1;
}
 
    