Readers and Writers
At the heart of .NET’s input/output model sits the concept of streams. Before we go there, let’s look at the layer right above them. There we find the concept of readers (for the I in I/O) and writers (the O in I/O), both of which make use of streams easier. In fact, the file and directory APIs directly exposed those.
Get C# 5.0 Unleashed 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.