title: UWP C# Windows IoT Read Text Line to Process Word
body: <p>I am trying to read a <code>text file</code> by and extract the words from individual line to process. 
  I am not too sure how to use the <code>streamreader</code> to read and process the text. </p>
  
  <pre><code>private async void readFile()
      {
          StorageFolder externalDevices = KnownFolders.RemovableDevices;
          IReadOnlyList&lt;StorageFolder&gt; externalDrives = await externalDevices.GetFoldersAsync();
          StorageFolder usbStorage = externalDrives[0];
  
          StorageFolder Folder = await usbStorage.CreateFolderAsync(FolderName, CreationCollisionOption.OpenIfExists);
          await usbStorage.GetFolderAsync(FolderName);
          IReadOnlyList&lt;StorageFile&gt; FileList = await Folder.GetFilesAsync();
  
  
          foreach (StorageFile file in FileList)
          {
  
              string Text = await FileIO.ReadTextAsync(file);
              //StreamReader Text = new StreamReader(file);
              //I am not sure how to implement StreamReader to read individual line of the text.
          }
      }
  </code></pre>
  
  <p>The file I am reading is show in the picture below. 
  Please advise. Thanks.</p>
  
  <p><a href="https://i.stack.imgur.com/3Qlu2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Qlu2.jpg" alt="enter image description here"></a></p>