Expanded

Working with Files and Streams in C#

C# has so many different ways to work with the file system and read and write data. It can be difficult to know what the best approach is and where to start. This course will teach you how to manipulates files, directories, paths, and streams in C#.
Course info
Rating
(14)
Level
Intermediate
Updated
Jun 2, 2021
Duration
3h 25m
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
(14)
Level
Intermediate
Updated
Jun 2, 2021
Duration
3h 25m
Your 10-day individual free trial includes:

Expanded library

This course and over 7,000+ additional courses from our full course library.

Hands-on library

Practice and apply knowledge faster in real-world scenarios with projects and interactive courses.
*Available on Premium only
Description

C# gives you many different ways to interact with the file system and read and write different types of data. It can be difficult however to know what the best approach is and where to find the classes that your file IO code needs. In this course, Working with Files and Streams in C#, you’ll gain the ability to manipulate files, directories, paths, and streams. First, you’ll explore how to manipulate files, directories, and paths. Next, you’ll discover how to monitor the file system and respond to changes such as a new file being written. Finally, you’ll learn how to both read and write text, binary, and CSV data by either reading the entire file into memory or by processing data in smaller chunks using streams. When you’re finished with this course, you’ll have the skills and knowledge of files and streams needed to read, process, and write data in C#.

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#
Advanced
2h 31m
Aug 13, 2021
Exception Handling in C#
Intermediate
1h 44m
Mar 22, 2021
More courses by Jason Roberts
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Jason Roberts, and welcome to my course, Working with Files and Streams in C#. I'm a freelance developer and author. C# gives you many different ways to interact with the file system and read and write different types of data. It can be difficult to know however what the best approach is and where to find the classes that your file IO code needs. In this course, you'll learn the skills you need to read and write text, binary, and CSV data files and also work incrementally with data using streams. Some of the major topics that we'll cover include how to manipulate files, directories, and file paths, how to monitor the file system and respond to changes, how to read and write text, binary, and CSV data files, how to read and write large amounts of data using streams, and how to unit test file IO code without using the physical file system. By the end of this course, you'll know how to build applications that manipulate the file system and process text, binary, and CSV data, either in memory or incrementally using streams. Before beginning the course, you should be familiar with basic C# syntax. I hope you'll join me on this journey to learn C# file processing with the Working with Files and Streams in C# course at Pluralsight.