Expanded Library

Working with Files and Streams in C# 9

by Jason Roberts

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#.

What you'll learn

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# 9, 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#.

Table of contents

Course Overview
1min

About the author

With over 15 years of experience in both frontend and backend software development, Jason Roberts is a freelance developer, trainer, and author. He holds a Bachelor of Science degree in computing, is the author of several books, and writes at his blog DontCodeTired.com. Jason is an open source contributor and in addition to enterprise software development, he has designed and developed Windows Store and Windows Phone apps.

Ready to upskill? Get started