private string ReadStreamFile(string fileFullName)//读取流文本,FileFullName输入例如"c:\\txt.txt"
{
FileStream objFileStream = new FileStream(fileFullName, FileMode.Open);
StreamReader objStreamReader = new StreamReader(objFileStream, Encoding.Default);
string tempstr = objStreamReader.ReadToEnd();
objStreamReader.Close();
objFileStream.Close();
return tempstr;
}
读取流文本
最新推荐文章于 2022-10-09 20:20:34 发布