readTextFileAsync function

Future<String> readTextFileAsync(
  1. String file
)

Reads the contents of the text file file.

Implementation

Future<String> readTextFileAsync(String file) =>
    _descriptorPool.withResource(() => File(file).readAsString());