2FRE3NJJ3IH765UJQDO2RIPHTF54TCEQYJXYNSRABIJXEYZ57VWQC
use std::io::prelude::*; // contains read_line for `BufReader<File>`
use std::io::BufReader;
use std::fs::File;
pub fn get_title(content: &str) -> Result<String, Box<dyn Error>> {
let fname = content.replace("todo:", "");
let f = File::open(fname)?;
let mut reader = BufReader::new(f);
let mut buffer = String::new();
reader.read_line(&mut buffer)?;
Ok(String::from(buffer.trim_start_matches("=").trim_start_matches(" ")))
}