.NET2.0 Base Class Library 系列(五)正则表达式
- use what namespace
1
using System.Text.RegularExpressions;
- load file into richtextbox
1
private System.Windows.Forms.RichTextBox inputText;
2
private void LoadTextFile()
3
{
4
string file = Path.Combine(Application.StartupPath, "Test.txt");
5
6
if(File.Exists(file))
7
{
8
inputText.Text = File.ReadAllText(file);
9
}
10
}




浙公网安备 33010602011771号