C# 把整个文件内容读入字符串变量
//把整个文件内容读入字符串变量
string path = @"d:\a.txt";
string s = System.IO.File.ReadAllText(path);

有些事情,没经历过不知道原理,没失败过不明白奥妙,没痛苦过不了解真谛。临渊羡鱼,不如退而结网!
//把整个文件内容读入字符串变量
string path = @"d:\a.txt";
string s = System.IO.File.ReadAllText(path);
