Chapter 5. File Input/Output in ASP.NET

In this chapter

Directory

The File and StreamReader Classes

The File and StreamWriter Classes

StringReader, StringBuilder, and StringWriter

FileStream, BinaryReader, and BinaryWriter

This chapter talks about input and output (I/O) in ASP.NET applications—specifically, file and string I/O. Fewer than half of the ASP developers I’ve met over the years actually read or write data from and to disk files. Most ASP applications center around .ASP and .HTM files, which contain the bulk of the application’s presentation. And a majority of the data used to populate .ASP files comes from a data source of some kind.

Note

Of course, .ASPX files are now used for ASP.NET applications, but when I refer to existing Web applications ...

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.