change the file read and write