Skip to content

System.FS

Filesystem operations with explicit error-returning APIs.

  • FS.ReadAllText(string path) -> Result<string, FsError>
  • FS.WriteAllText(string path, string text) -> Result<unit, FsError>
  • FS.Exists(string path) -> bool
  • Runtime owns platform-specific I/O behavior.
  • Keep path normalization policy explicit and testable.