- Course
Working with Files and Streams in C# 9
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
Working with Files and Streams in C# 9
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#.
Get started today
Access this course and other top-rated tech content with one of our business plans.
Try this course for free
Access this course and other top-rated tech content with one of our individual plans.
This course is included in the libraries shown below:
- Core Tech
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#.
Working with Files and Streams in C# 9
-
Version Check | 20s
-
Introduction | 2m 58s
-
Creating a New Console App | 6m 26s
-
Checking if a File Exists | 3m 51s
-
Getting the Parent Directory of a Path | 3m 25s
-
Checking if a Directory Exists and Creating New Directories | 3m 58s
-
Copying a File | 2m 51s
-
Moving a File | 3m 40s
-
Getting the File Extension from a File Name | 5m 36s
-
Deleting a Directory | 2m 1s
-
Enumerating All the Files in a Directory | 3m 22s
-
Summary | 1m 9s