pub async fn read_to_string(path: impl AsRef<Path>) -> Result<String>
Available on crate feature
tokio
only.Expand description
Creates a future which will open a file for reading and read the entire contents into a string and return said string.
Wrapper for tokio::fs::read_to_string
.