象下面这样做
var allText = File.ReadAllText("路径", Encoding.Default);
var values = allText.Split(' ');
string s = null;
if (File.Exists(file_absolute_path))
{
FileInfo fi = new FileInfo(file_absolute_path);
FileStream fs = fi.Open(FileMode.OpenOrCreate);
StreamReader sr = new StreamReader(fs, System.Text.Encoding.Default);
sr = new StreamReader(fs, System.Text.Encoding.Default);
s = sr.ReadToEnd();
sr.Close();
fs.Close();
return s;
}