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
(30)
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
(30)
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
Working with Nulls in C#
Intermediate
2h 9m
Aug 19, 2019
Mocking with Moq and NUnit
Intermediate
1h 53m
Feb 22, 2019
More courses by Jason Roberts
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name's Jason Roberts. Welcome to my course Working with Files and Streams in C#. I'm a freelance developer and author. In this course, you're going to learn the different ways to work with files and file data. Some of the major topics that we'll cover in this course include how to manipulate files and directories on the file system, how to read and write text binary and CSV files, how to use streams, and how to write automated tests for file access code. By the end of this course, you'll understand how to read data files into your C# application and how to write output data files from it. Before beginning the course, it's recommended that you have at least a basic understanding of C#. I hope you'll join me on this journey with the Working with Files and Streams in C# course at Pluralsight.