Friday, June 5, 2009

Chapter 2-Lesson 1

  • FileInfo.Encrypt( ) method encrypts a file
  • DriveInfo.AvailableFreeSpace( ) may return different value than DriveInfo.TotalFreeSpace( ) depending on disk quotas.
  • All types optical drives (CDROM, DVD, etc) are marked as DriveInfo.CDRom enum value
  • Path.GetFullPath( ) method can be used to resolve relative paths.
  • Path.GetRandomFileName( ) generates a random filename.
  • Given a path, the Path class can be used to extract different pieces of info within the path string (e.g. Filename, extension, directory, root directory, ...) using its methods.

No comments:

Post a Comment