read function

List<String> read(
  1. String path
)

Implementation

List<String> read(String path) {
  if (!exists(path)) {
    StatusHelper.failed('The file at ${truepath(path)} does not exists');
  }

  return File(path).readAsLinesSync();
}