Expand description
Platform agnostic file io.
Note: wasm file io always return Err, but do not panic.
Functionsยง
- create_
dir_ all - Recursively creates a directory and all of its parent components if they are missing.
- read
- Reads the entire contents of a file into a bytes vector.
- read_
to_ string - Creates a future which will open a file for reading and read the entire contents into a string and return said string.
- write
- Creates a future that will open a file for writing and write the entire
contents of
contents
to it.