Write a Python program that reads a text file with your name and class schedule, such that the
first line in the file is your name and each subsequent line has one of your classes. For example:
Tom Cruise
cosc 1323 - Computer Concepts I
bask 1301 - Basket Weaving
scub 4421 - Scuba Diving For Seniors
More Details:
Use Notepad or TextEdit to create the file. Your program does NOT have to create the file,
only open it, read it and print each line to the screen. You will use a text editor,
such as Notepad or TextEdit to create the file and type in your name and class schedule.
Then close the file the editor and use your Python program to read the file and print
the contents to the screen.
Your program should open the file for read mode, use a for loop to read each line of the
file and print the schedule to the screen.
In our book, see page 196 for information on how to open a file, loop through the lines
of the file and print the contents.
Remember to use the entire path to the file when using the open() function.
For full Credit : You must use exception handling to check for IOError exceptions. You must
put comments above each function to describe what the function does.