Use the following links to help with loading a file.
Working with files. - Written materials
Files - with videos - File handling
1) Open the File
2) Get the contents from the file
3) Close the File
4) Print the contents
Above we read the whole file at once - and you could do the same and then process the resulting string but you can read a file line by line (just like entering a line at a time).
We may need to step through the file and get a line at a time so we can use a for loop for this - because we know how many lines are in the file - or at least we can find out.