DETECTING END OF FILE
Open
Use readline to read the first line form the file
While the value returned from readline is not an empty string:
Process the item that was just read from the file
Use readline to read the next line from the file.
Close the file