pub fn write_item(path: &Path, text: &str) -> Result<(), String>
Writes an item next to its place, then moves it in.