//把本地文件信息读入数据流中
FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
StreamReader reader = new StreamReader(stream);
StringBuilder sb = new StringBuilder();
do
{
sb.AppendLine(reader.ReadLine());
} while (!reader.EndOfStream);
return sb.ToString();