openSync method

RandomAccessFile openSync (
  1. {FileMode mode = FileMode.read}
)

Synchronously opens the file for random access operations.

The result is a RandomAccessFile on which random access operations can be performed. Opened RandomAccessFiles must be closed using the RandomAccessFile.close method.

See open for information on the mode argument.

Throws a FileSystemException if the operation fails.

Implementation

RandomAccessFile openSync({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/openSync.html