openWrite method

  1. @override
IOSink openWrite ({FileMode mode: FileMode.write, Encoding encoding: utf8 })
override

Creates a new independent IOSink for the file. The IOSink must be closed when no longer used, to free system resources.

An IOSink for a file can be opened in two modes:

When writing strings through the returned IOSink the encoding specified using encoding will be used. The returned IOSink has an encoding property which can be changed after the IOSink has been created.

Implementation

@override
IOSink openWrite({
  FileMode mode: FileMode.write,
  Encoding encoding: utf8,
}) =>
    delegate.openWrite(mode: mode, encoding: encoding);