Working with Directories in C#

Mahesh Chand

The System.IO.Directory class in the .NET Framework class library provides static methods for creating, copying, moving, and deleting directories and subdirectories. In this book, we will learn how to work with directories and subdirectories using C# and .NET.

  • Published on Jul 17 2012
  • Pages 7
  • Downloaded 17.4k
  • Type PDF
Download
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 61.9k
  • 0
 
Input and output (I/O) streaming is a process of reading data from and writing data to a storage medium. In the .NET Framework, the System.IO namespace and its sub namespaces contain the classes and other types to perform I/O operations.
 
The Directory class in the .NET Framework class library provides static methods for creating, reading, copying, moving, and deleting directories.
 
This book covers the following topics:
  • Understand the Directory class
  • Directory properties
  • How to create a directory
  • How create a subdirectory
  • How to read all directory and directories
  • How to read all files in a directory
  • How to move a directory
  • How to delete a directory