open method

  1. @override
Future<RandomAccessFile> open({
  1. FileMode mode = FileMode.read,
})
override

Opens the file for random access operations.

Returns a Future<RandomAccessFile> that completes with the opened random access file. RandomAccessFiles must be closed using the RandomAccessFile.close method.

Files can be opened in three modes:

Throws a FileSystemException if the operation fails.

Implementation

@override
Future<RandomAccessFile> open({
  FileMode mode = FileMode.read,
}) =>
    delegate.open(mode: mode);