Code:
public void logger_reader(string logger_reader)
{
string item = @"Last";
//*** Coloring all the text inside the richTextBox1 in Red ***\\
string[] ftext = File.ReadAllLines(logger_reader);
for (int i = 0; i < ftext.Length; i++)
{
richTextBox1.SelectionColor = Color.Red;
richTextBox1.GetFirstCharIndexFromLine(i);
richTextBox1.SelectedText=(ftext[i] + "\r\n");
}
Thank you very much for the help.
Comment