C# 把整个文件内容读入字符串变量

//把整个文件内容读入字符串变量

string path = @"d:\a.txt";
string s = System.IO.File.ReadAllText(path);

 

posted @ 2017-12-07 10:07  都是城市惹的祸  阅读(296)  评论(0)    收藏  举报