I am working on a C# WPF tool, which shall read different text file types and analyze the file line by line.
It works properly for example for a .asc text file:
foreach (string line in File.ReadLines(myFile.asc)) {
AnalyzeCurrentLine(line);
}
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 RichTextBox
object the correct way for this?