code for writing and reading the contents of a file