readfile and save file