File System and the Registry (C# Programming Guide)

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

The following topics show how to use C# and the .NET Framework to perform various basic operations on files, folders, and the Registry.

TitleDescription
How to: Iterate Through a Directory TreeShows how to manually iterate through a directory tree.
How to: Get Information About Files, Folders, and DrivesShows how to retrieve information such as creation times and size, about files, folders and drives.
How to: Create a File or FolderShows how to create a new file or folder.
How to: Copy, Delete, and Move Files and Folders (C# Programming Guide)Shows how to copy, delete and move files and folders.
How to: Provide a Progress Dialog Box for File OperationsShows how to display a standard Windows progress dialog for certain file operations.
How to: Write to a Text FileShows how to write to a text file.
How to: Read From a Text FileShows how to read from a text file.
How to: Read a Text File One Line at a TimeShows how to retrieve text from a file one line at a time.
How to: Create a Key In the RegistryShows how to write a key to the system registry.

File and Stream I-O

How to: Copy, Delete, and Move Files and Folders (C# Programming Guide)

C# Programming Guide

Files, Folders and Drives

System.IO

Show: