edit writefile