/// <summary> /// Print text stored in log file to chat window. /// </summary> private void PrintLog(int lines) { // Store all lins of the log file string[] log = CchatLog.ReadFromLog(); // Iterate through last set of lines until end of log for (int i = log.Length - lines - 1; i < log.Length; i++) { chatBox.AppendText(log.ElementAt(i) + "\r\n"); } }