transfer to absolute path to read and write file