Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Working with Files and Streams in C#

via Pluralsight

Overview

Understanding file and data manipulation is key to a full understanding of C#. This course will teach you how to manage files and directories, read and write data in a number of different ways, and write unit tests using a mock file system.

At the core of C# file IO is a thorough knowledge of how to manipulate files and directories and use streams. In this course, Working with Files and Streams in C#, you will learn the skills you need to read and write text, binary, and CSV files, and work with streams of data. First, you will learn how to manipulate files and directories on disk. Next, you will discover how to respond to changes in the file system and read and write data by loading entire files into memory or by incrementally processing them with streams. Finally, you will explore how to write testable file IO code and how to use a mock file system to create faster-executing and more maintainable tests. When you’re finished with this course, you will have a foundational understanding of file access and stream manipulation code that will help you immensely as you move forward and create your own file- or stream-manipulating applications.

Topics:
  • Course Overview
  • Managing Files and Directories
  • Monitoring the File System for Changes
  • Reading and Writing Entire Files into Memory
  • Reading and Writing Data Incrementally Using Streams
  • Reading and Writing CSV Data
  • Creating Automated Tests for File Access Code

Taught by

Jason Roberts

Reviews

4.6 rating at Pluralsight based on 77 ratings

Start your review of Working with Files and Streams in C#

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.