Working with Directories in C#

By Mahesh Chand on Jul 17, 2012
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.
  • 7 Pages
  • 10241 Downloaded
  • PDF
Download This E-Book Now
Introduction:
 
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

comments

Comment Using

Unlimited Flat-Free License

MOST DOWNLOADED

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Unlimited Flat-Free License