fn read_username_from_file() -> Result<String, io::Error> {
let f = file::open("user.txt");
let mut f = match f {
Ok(file) => file,
Err(error) => return Err(error),
};
let s = String::new();
match f.read_to_string(&s) {
Ok(_) => Ok(s),
Err(e) => Err(e),
}
}