Chapter 15. Working with the C# I/O API

Input/output operations are a fundamental aspect of any programming language. I/O operations are also usually the bottleneck of any enterprise application. Operations such as accessing a disk file and accessing a database tend to be a degree slower than accessing in-memory data structures. This chapter looks at C#'s I/O classes and explores how to conduct routine I/O operations in C#. We look at streams, text, and binary file reading and writing, as well as files and directories, asynchronous I/O, and serialization.

Get .NET for Java Developers: Migrating to C# 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.