How can i read and display info from multiple text files in 1 message box C#?
<p>So i have a application that uses check boxes and radio buttons to scan a computer for virus then have each anti virus create a log of its actions. What id like to do is (based on which check boxes (there's 5 total) are checked) have a message box pop up when its all done and have read each text file for a key word then read that line, for all 5 text files (if all 5 were created could be 1,2,3,4 or 5 of them). So when its all done it will just have 1 message box pop up with the info from all 5 text files 1 line each like "Panda found 5 viruses" next line "A Squared found 0 viruses" etc. then when the message box is closed, delete the text files. I know how to do this with 1 check box and 1 text file but i don't know how to do this with multiple check boxes and multiple text files. My single file reader works like this:</p>

<pre><code>int counter = 0;
string line;

// Read the file and display it line by line.
System.IO.StreamReader file = new System.IO.StreamReader("C:\\Panda.txt");
while ((line = file.ReadLine()) != null)
{
    if (line.Contains("Number of files infected"))
    {
        MessageBox.Show("Panda " + line);
    }
}
file.Dispose();
System.IO.File.Delete("C:\\Panda.txt");
</code></pre>

<p>any help would be nice thanks. OH and C# .net 2.0 ONLY please</p>
