New Horizons Get Schooled Blog

Using ASP.NET to Read from a Text File Using FileStream StreamReader class

Posted on 8/30/10 8:52 AM by Get Schooled in asp.net, in filestream, in Microsoft, in New Horizons Computer Learning Center, in streamreader, in Tips & Tricks

Read from a text file using the FileStream StreamReader class (ASP.NET)
If you're writing to text files in .NET, chances are there will come a time when you want to read from those text files as well. To accomplish this task, you'll need to use the StreamReader class. The StreamReader class is a member of the FileStream class, which provides all the functionality you need to read and write data to text files. The following code reads one line from a text file:

0 CommentsContinue Reading →

Search by Topic

    Lists by Topic

    see all

    Knowledge Ninjas

    a web-based service that allows software application end users to access a subject matter expert in real-time via a chat interface to resolve questions or problems they encounter in their specific software.

     

    Subscribe