Module
System.Storage.FileText
module System.Storage.FileText
Bounded whole-file text operations
ReadAllText and WriteAllText are synchronous host-path helpers with an explicit maximum byte count. They return Result values with FileReadError or FileWriteError for expected path, access, encoding, size and I/O failures.
Use these helpers for bounded whole-file operations. Use streams when processing data incrementally, or storage providers for provider-owned resources.
Functions
2 items
Static member:
ReadAllText(path: string, maxBytes: int) -> Result<string, FileReadError>
No summary available.
Static member:
WriteAllText(path: string, text: string, maxBytes: int) -> Result<void, FileWriteError>
No summary available.