write file edit