Add file-editing function.