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
  • 9059 Downloaded
  • PDF
Download This E-Book Now
Intoduction:

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

 

 


COMMENT USING

Training for .Net Developers

MOST DOWNLOADED

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.