C # reads the code of 2 functions of the text file
The code process often used code collection, the following code content is about C#read text file 2 function code.
Textreader tr = new StreamReader("date.txt");
Console.WriteLine(tr.ReadLine());
tr.Close();
StreamReader reader = new StreamReader("date.txt");
Console.WriteLine(reader.ReadLine());
reader.Close();