private void Func_ConvertLogFile() { // 針對LOG的每一行過濾與轉換 var lines = this.richTextBox_OriginalLog.Text.Split('\n').ToList(); richTextBox_ConvertLog.Clear(); // 先清掉舊的結果 foreach (var line in lines) { // access a line, process it. richTextBox_ConvertLog.AppendText("<>" + line + "\n"); } }