CSC223 w/ reading and writing to file