read and write file name