You can create instances of these classes by passing a string that represents the name of the file, folder, or drive in to the constructor: System.IO.DriveInfo di = new can also obtain the names of files, folders, or drives by using calls to DirectoryInfo.GetDirectories, DirectoryInfo.GetFiles, and DriveInfo.RootDirectory. They also contain methods for opening, closing, moving, and deleting files and folders. The FileInfo and DirectoryInfo classes represent a file or directory and contain properties that expose many of the file attributes that are supported by the NTFS file system. NET, you can access file system information by using the following classes:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |