writeString method

Future<void> writeString(
  1. String path,
  2. String content, {
  3. bool rewrite = true,
})

Write content to a file as String. File will be created if it doesn't exist.

Implementation

Future<void> writeString(String path, String content,
        {bool rewrite = true}) async =>
    await writeStringToFile(path.replaceSeparator(), content,
        rewrite: rewrite);