new file read and write methods in the file module