Friday, 9 February 2007

High level overview of System.IO File & Directory classes

  • File (Static class that provides methods for testing for the existence of a file, copying files, deleting files, moving files, as well as opening of files and the creation of streams from files)
  • FileInfo (Instance class that provides information about a specific file. Also contains instance methods for performing copy, move, delete and relaled operations).
  • Directory (Static class that provides methods for determing the existence of directories, creating directories, etc).
  • DirectoryInfo (Provides instance methods for operating on a specific directory, including renaming, obtaining list of files within directory, etc).
  • Path (Utility class for parsing and building path strings).

No comments: