日期:2014-05-17 浏览次数:20506 次
private static string Content = null;
public static string ReadTxt
{
get
{
if (Content == null)
{
string[] srArray = File.ReadAllLines(@"d:\test\dev.txt", Encoding.Default);
for (int i = 1; i < srArray.Length; i++)
{
Content += (srArray[i] + ",t" + '\n');
}
}
char[] trimChars = new char[] { '\r', '\n' };
Content = Content.Trim(trimChars).ToString();
return Content;
}
}