日期:2014-05-17 浏览次数:21109 次
StreamReader sr = new StreamReader("test.txt");
while (sr.Peek() > -1)
{
string line = sr.ReadLine();
string[] str = line.Split(',');
string newLine = Convert.ToDateTime(str[0] + " " + str[1]).ToString("yyyy/MM/dd HH:mm") + "," + str[3];
Console.WriteLine(newLine);
}