writeLines method

Future<void> writeLines(
  1. List<String> lines, {
  2. Encoding encoding = utf8,
})

Write lines to a file.

Implementation

Future<void> writeLines(List<String> lines,
    {Encoding encoding = utf8}) async {
  fs.unwrapIoFile(await fs.writeLines(fs.wrapIoFile(this), lines,
      encoding: encoding, useCrLf: _useCrLf));
}