title: OS Error: No such file or directory, errno = 2
body: <p>I have trouble loading a html file stored in my assets folder. I've been searching for 2 days and I can't seem to find out why.</p>
  
  <p>I've made sure to include it in pubspec.yaml as well, with the proper indentations and all - builds fine. The image assets I loaded in pubspec.yaml loads no problem so I know everything should be okay with that part.</p>
  
  <p>I've also tried to test it with a .txt file following the exact sample code here: <a href="https://api.flutter.dev/flutter/dart-io/File-class.html" rel="noreferrer">https://api.flutter.dev/flutter/dart-io/File-class.html</a> - from "Reading from a file" as a stream section. It gives the same error.</p>
  
  <p>This is what I'm trying to do:</p>
  
  <pre><code>// Tried this with a test .txt file too ('assets/html/test.txt')
  File file = new File('assets/html/emaiL_bank.html');
  
  Stream&lt;List&lt;int&gt;&gt; inputStream = file.openRead();
  inputStream
      .transform(utf8.decoder)
      .transform(new LineSplitter())
      .forEach((l) =&gt; print('testing Print: $l'));
  </code></pre>
  
  <p>This is a section of my pubspec.yaml:</p>
  
  <pre><code>flutter:
    assets:
      - assets/images/ic_splashscreen.jpg
      - assets/images/at.png
      - assets/images/lock.png
      - assets/html/emaiL.html
      - assets/html/emaiL_bank.html
      - assets/html/test.txt
  </code></pre>
  
  <p>..and I get OS Error: No such file or directory, errno = 2
  when it's trying to do file.openRead()</p>
  
  <p>Tried flutter clean, restarting IDE, rebuild - nothing seems to have any effect.</p>
  
  <p>Any help/clue would be much appreciated.</p>