Posted by: R Manimaran | October 18, 2007

Read Text File using C#

TextFile Reading in C#

StreamReader rdr=new StreamReader(“10_001.txt”);

int lnCount;

for(lnCount=0;lnCount<=LineCount(rdr.ReadToEnd(),true);lnCount++)

{

     string text=rdr.ReadLine();

}

Advertisements

Responses

  1. awesome! 😀

  2. This is not a big deal. Any basic C# book or msdn will have it in their first page. Do u really think this is valuable?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: