Home | Articles|Namespace|Interview Questions|Tools|Jobs|Projects|Community
Asp.net Tutorials

»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books

»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects

»Competition
Community
Winners
Prizes
Write For Us
Members

»Other Resources
Links
Dotnet Resources


Forums»ASP.NET Forums»



unabler to read te dta of the text file

int i = 1;
StringReader strr = new StringReader(MapPath("Tfile.txt"));
//
while (strr.ReadLine() != null)
{
txtname.Text = strr.ReadLine(); //Response.Write(i);

}
posted by:anonymous on 10/1/2007 12:25:08 AM
Read data from Text file

//Use this code and enjoy

FileStream fs = new FileStream(@"c:\datatextfilename.txt", FileMode.Open, FileAccess.ReadWrite);
StreamReader sr = new StreamReader(fs);

string sTempString = "";

sTempString =sr.ReadToEnd();


textBox1.Text = sTempString;
posted by:Rajendra  on 10/1/2007 2:45:58 AM
© 2008 dotnetwatch.com -- Privacy policy

Website Design & Internet Marketing by Shivam