fileWriteString function

bool fileWriteString(
  1. String path,
  2. String data
)

Implementation

bool fileWriteString(String path, String data) {
  if (fileReadString(path) != data) {
    File(path).writeAsStringSync(data);
    return true;
  } else {
    return false;
  }
}