pa1- read/write file