openFileHandle

abstract fun openFileHandle(path: String, mode: FileStorageMode): FileHandle

Opens a file handle at the given path with a platform-specific mode (e.g. "r", "rw"). The returned FileHandle must be closed by the caller when no longer needed.