reading and writing to a file
read and write to files