[−][src]Function edit::edit_file
pub fn edit_file<P: AsRef<Path>>(file: P) -> Result<()>
Open an existing file (or create a new one, depending on the editor's behavior) in the default editor and wait for the editor to exit.
Arguments
A Path
to a file, new or existing, to open in the default editor.
Returns
A Result is returned in case of errors finding or spawning the editor, but the contents of the
file are not read and returned as in edit
and edit_bytes
.