pub async fn load_string(path: &str) -> Result<String, FileError> {
    let data = load_file(path).await?;

    Ok(String::from_utf8_lossy(&data).to_string())
}
/// Load string from the path and block until its loaded.
/// Right now this will use load_file and `from_utf8_lossy` internally, but
/// implementation details may change in the future
Load string from the path and block until its loaded.
Right now this will use load_file and `from_utf8_lossy` internally, but
implementation details may change in the future
Load string from the path and block until its loaded . Right now this will use load_file and ` from_utf8_lossy ` internally but implementation details may change in the future
pub async fn load_string(path: &str) -> Result<String, FileError> {
    let data = load_file(path).await?;
    Ok(String::from_utf8_lossy(&data).to_string())
}
pub async fn load_string ( path : & str ) -> Result < String , FileError > { let data = load_file ( path ) . await ? ; Ok ( String :: from_utf8_lossy ( & data ) . to_string ( ) ) }
Load string from the path and block until its loaded.
Load string from the path and block until its loaded .
path
&str
path
&str