more on reading and wirting of files