Simple reading and writing of files