function groundTruthLabels = readGroundTruthData(fileName)
% Reads ground truth data from a text file.

    % groundTruthData File format is <file num>, <label>
    % code from Vijay
    
    fid = fopen(fileName, 'r');
    if (fid == -1)
        error('Problem opening file\n');
    end

    counter = 1;
    while 1
        tline = fgetl(fid);
        if ~ischar(tline)
            break
        end
        
        [t, rem] = strtok(tline);
        groundTruthLabels{counter} = strtrim(strtok(rem, 10)); %10 = end of line character
        counter = counter+1;
        
    end
    
    fclose(fid);

end