pub fn write(brain: &Path, name: &str, line: &str) -> Result<()>
Write a note (creating the checked directory if needed).