sing the asynchronous <a href="dart-io/File/readAsString.html">readAsString</a> method:</p>
<pre class="language-dart"><code>import 'dart:async';
import 'dart:io';

void main() {
  new File('file.txt').readAsString().then((String contents) {
    print(contents);
  });
}
</code></pre>
<p>A more flexible and useful way to read a file is with a <a href="dart-async/Stream-class.html">Stream</a>.
Open the file with <a href="dart-io/File/openRead.html">openRead</a>, which returns a stream that
provides the data i