borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how to develop a global data access class?)Next Topic (how to show images through datagrid ?) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : how to read a text file in asp.net
Poster Message
tri_inn
Level: Regular User
Registered: 26-08-2002
Posts: 395

icon how to read a text file in asp.net

i want to read a text file line by line using built in class in asp.net
line by line means one line at a time.
if possible give me the source code.

05-09-2004 at 02:10 PM
View Profile Send Email to User Show All Posts | Quote Reply
zimcoder
Level: VB Lord


Registered: 27-10-2003
Posts: 225
icon Re: how to read a text file in asp.net

Here is a simple method that takes a text file on the server and reads and displays the content. It should be a starting point

private void Page_Load(object sender, System.EventArgs e)
{
StreamReader sr = new StreamReader(Server.MapPath("test.txt"));
Response.Write(sr.ReadToEnd());

}


____________________________
BrainBench ADO.NET and ASP.NET Certified Developer

13-09-2004 at 11:00 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ASP.Net : how to read a text file in asp.net
Previous Topic (how to develop a global data access class?)Next Topic (how to show images through datagrid ?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder