readFile static method

String readFile(
  1. String path
)

Implementation

static String readFile(String path) {
  try {
    return File(path).readAsStringSync();
  } catch (e) {
    stderr.writeln('readFile error: $e');
    return '';
  }
}