Function origen::utility::file_actions::prepend[][src]

pub fn prepend(file: &Path, text: &str) -> Result<()>
Expand description

Prepend the given text at the start of the given file. Returns an error if any error is encountered when trying to make the update, e.g. if the given file doesn’t exist.