a_auto_decode_file

Function a_auto_decode_file 

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

Asynchronously reads a file and automatically decodes its content.

ยงExample

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