Completed lecture 4 on reading text files