Edit a file