readFile method

String readFile(
  1. String path
)

Reads the contents of a file.

Throws if the file cannot be read.

Implementation

String readFile(String path) {
  return io.File(path).readAsStringSync();
}