pub fn file_to_string(file:&mut File) -> anyhow::Result<String> {
    let mut res = String::new();
    file.read_to_string(&mut res)?;
    Ok(res)
}
/// Read a file to a string. Like file.read_to_string but doesn't need a provided buffer.
Read a file to a string. Like file.read_to_string but doesn't need a provided buffer.
Read a file to a string . Like file . read_to_string but doesn ' t need a provided buffer .
pub fn file_to_string(file:&mut File) -> anyhow::Result<String> {
    let mut res = String::new();
    file.read_to_string(&mut res)?;
    Ok(res)
}
pub fn file_to_string ( file : & mut File ) -> anyhow :: Result < String > { let mut res = String :: new ( ) ; file . read_to_string ( & mut res ) ? ; Ok ( res ) }
Read a file to a string.
Read a file to a string .
file
&mut File
file
&mut File