Your assignment, as presented, does not need you to record your values in a list. Why? Your output only requires:
1. the time on each track
2. a running total of the time so far on the CD
3. a running total of the time remaining so far on the CD
#1 is calculated directly from the input you're reading in from each file, and #2 and #3 are just values for which you only need two actual accumulators (variables)--timeElapsed and timeRemaining--that you maintain as you read in each new track value.
You can build your table (or rather, format and write [to] output) as you read your values from the file.
For the rest:
- When reading data from files, look at using ifstream.good()
- Arrays are bad (but sometimes necessary and you should understand when you should and should not use them), explore vectors and other standard containers instead