title: Flutter: How to read data from simple spreadsheet?
body: <p>I am new to flutter and a have question that shouldn't be to hard to answer for a pro.</p>
  <p>I have a simple spreadsheet with 5 columns and 10 rows. Now I have two variables, representing column and row index.</p>
  <p>I want to simply read the corresponding value out of the spreadsheet, depending on the wanted column and row numbers.</p>
  <p>Is this possible with flutter? Can flutter read a spreadsheet (.csv e.g.) and somehow get the information out of it?</p>
  <p>I'm looking forward to an answer, thank you!</p>
  <p>EDIT: This is the code I have so far, originally from <a href="https://flutter.io/cookbook/persistence/reading-writing-files/" rel="nofollow noreferrer">https://flutter.io/cookbook/persistence/reading-writing-files/</a>.</p>
  <p>It prints</p>
  <blockquote>
  <p>I/flutter (18817): Instance of 'Future'</p>
  </blockquote>
  <p>but I don't know how to access the data.</p>
  <pre><code>Future&lt;String&gt; readTable() async {
      try {
        final file = File(&quot;assets/res/table.txt&quot;);
  
        // Read the file
        String contents = await file.readAsString();
        print(contents);
        return contents;
      } catch (e) {
        // If we encounter an error, return empty string
        return &quot;&quot;;
      }
    }
  </code></pre>