Working with Files and Streams in C#

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.
Course info
Rating
(11)
Level
Intermediate
Updated
Oct 12, 2018
Duration
3h 13m
Table of contents
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
Description
Course info
Rating
(11)
Level
Intermediate
Updated
Oct 12, 2018
Duration
3h 13m
Description

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.

About the author
About the author

With over 15 years experience, Jason Roberts is a Microsoft .NET MVP, freelance developer, and author.

More from the author
Error Handling in C# with Exceptions
Intermediate
1h 37m
6 Aug 2018
Automated Testing with MSTest V2
Intermediate
2h 2m
18 May 2018
More courses by Jason Roberts