title: Reading RTF Files line by line in C# WPF
body: <p>I am working on a C# WPF tool, which shall read different text file types and analyze the file line by line. </p>
  
  <p>It works properly for example for a .asc text file:</p>
  
  <pre><code>foreach (string line in File.ReadLines(myFile.asc)) {
    AnalyzeCurrentLine(line);
  }
  </code></pre>
  
  <p>Now it becomes difficult for me reading a RTF file. I still want to read it line by line. The format of the text is not relevant. Is a <code>RichTextBox</code> object the correct way for this?</p>