Saturday, 16 May 2009
Read a Text File Line by Line using C#
Posted on 14:08 by Unknown
Here is the sample code:
string file_name = @"c:\list.txt";
System.IO.StreamReader ObjReader = new System.IO.StreamReader(file_name);
do
{
MessageBox.Show(ObjReader.ReadLine());
} while (ObjReader.Peek() != -1);
Happy Programming !!!!
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment