Create a txt file with the information in correct columns, as if you don't the information won't be right. This code should help.
ifstream inputFile;
ofstream outputFile;
inputFile.open("payInput.txt");
outputFile.open("outputFile.txt");
In this scenario, you still need to know how many records there are in the file as in the SIZE constant. what I want is to be able to read everything without needing to know the file size/how many records in advance. I assume that a dynamic data structure must be used in this case?