CsvFile.open

CsvResult!bool open()

Open the file according to the selected mode.

Notes:

  • For read, the file must exist; failure is surfaced via CsvResult with ioFailure.
  • For write, the file is created or truncated.
  • For append, the file is created if it does not exist.
  • When memoryMapped == true, mapping is not performed here; this method

only opens the OS file handle and validates access.

Returns

CsvResult!bool indicating success or ioFailure on error.