edit file and new file