Expand description
File reading, writing, and streaming.
Structs§
- File
- An open file handle without access to platform-specific filesystem APIs.
Constants§
Functions§
- create
- Create or truncate a file for streaming writes.
- create_
new - Create a new file without replacing an existing entry.
- open
- Open a file for reading.
- read_
bytes - Read an entire file as bytes.
- read_
text - Read an entire UTF-8 text file.
- read_
text_ if_ exists - Read an entire UTF-8 text file when it exists.
- write_
bytes - Replace a file’s contents directly.
- write_
text - Replace a UTF-8 text file’s contents directly.