Search results

There are no results.

std.fs.file

Types and methods for manipulating files on a filesystem.

Rather than using a single "File" type for all different file modes, Inko uses three separate file types:

  • ReadOnlyFile: read-only file operations
  • WriteOnlyFile: write-only file operations
  • ReadWriteFile: read-write file operations

Using different types per file mode allows for a type-safe file API.

Files are automatically closed when they are dropped. Any errors that may occur when closing a file are ignored.

Classes

ReadOnlyFile

A file that can only be used for reads.

ReadWriteFile

A file that can be used for both reads and writes.

WriteOnlyFile

A file that can only be used for writes.