/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// create reader & open file string line = "EMPTY LINE"; while ((line = tr.ReadLine()) != null) { Console.WriteLine(line); } // close the stream tr.Close();
URL: http://msdn.microsoft.com/en-us/library/aa287535%28v=vs.71%29.aspx