update to main.c for ep 4

in this update I have added a file reading function for episode 4 of the YouTube series.