writeStringSync abstract method

void writeStringSync(
  1. String string,
  2. {Encoding encoding = utf8}
)

Synchronously writes a single string to the file using the given Encoding.

Throws a FileSystemException if the operation fails.

Implementation

void writeStringSync(String string, {Encoding encoding = utf8});