Exercise - Create and manage text files
This exercise guides you through the implementation of file management tasks using System.IO classes in a C# app. You complete the following tasks during this exercise:
- Create and enumerate directories and files using the
Path,Directory, andFileclasses. - Perform file management tasks using the
Fileclass. - Read and write CSV files using the
StreamWriterandStreamReaderclasses. - Perform low-level file input and output operations using the
FileStreamclass. - Create and read binary files using the
BinaryWriterandBinaryReaderclasses.
Important
This exercise requires a Visual Studio Code environment with the C# Dev Kit extension installed. For help with configuring the Visual Studio Code environment, see Install and configure Visual Studio Code for C# development.
When you select the launch exercise button, the browser navigates to a public GitHub page that provides instructions for this exercise.
When you finish the exercise, return here for:
- A quick knowledge check.
- A summary of what you learned.
- A badge for completing this module.
