Function ezio::file::read

source ·
pub fn read(path: impl AsRef<Path>) -> String
Expand description

Read and return a whole file.

The path argument specifies the path to the file to read from. It may be either a Path, a string, or any other type that can be converted (using AsRef) to a Path. The file must already exist.

Panics if there is no file at path, or the file cannot be opened.