Finished readFile function. In theory, we are now set to go.