auto_decode_file

Function auto_decode_file 

Source
pub fn auto_decode_file<P: AsRef<Path>>(path: P) -> AnyResult<String>
Expand description

Synchronously reads a file and automatically decodes its content.

ยงExample

let content = auto_decode_file("path/to/file.txt")?;
println!("File content: {}", content);