writeFile function

Future<bool> writeFile(
  1. String path,
  2. String filename,
  3. String log
)

Write String to file

Implementation

Future<bool> writeFile(String path, String filename, String log) async {
  File file = _getFile(path, filename);

  await file.writeAsString(log, mode: FileMode.append);
  return true;
}