open method

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

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:

Implementation

Future<RandomAccessFile> open({FileMode mode = FileMode.read});

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/File/open.html