The FileSystem module contains the procedures used to perform file, directory or folder, and system operations.
The My feature gives you greater productivity and performance in file I/O operations than using the FileSystem module.
| C# | Visual Basic |
public sealed class FileSystem
Public NotInheritable Class FileSystem
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| CombinePath(String, String) |
Combines two paths and returns a properly formatted path.
| |
| CopyDirectory(String, String) | ||
| CopyDirectory(String, String, UIOption) | ||
| CopyDirectory(String, String, Boolean) | ||
| CopyDirectory(String, String, UIOption, UICancelOption) | ||
| CopyFile(String, String) |
Copies a file.
| |
| CopyFile(String, String, UIOption) | ||
| CopyFile(String, String, Boolean) | ||
| CopyFile(String, String, UIOption, UICancelOption) | ||
| CreateDirectory(String) |
Creates a directory.
| |
| DeleteDirectory(String, DeleteDirectoryOption) |
Deletes a directory.
| |
| DeleteDirectory(String, UIOption, RecycleOption) |
Deletes a directory.
| |
| DeleteDirectory(String, UIOption, RecycleOption, UICancelOption) |
Deletes a directory.
| |
| DeleteFile(String) |
Deletes a file.
| |
| DeleteFile(String, UIOption, RecycleOption) |
Deletes a file.
| |
| DeleteFile(String, UIOption, RecycleOption, UICancelOption) |
Deletes a file.
| |
| DirectoryExists(String) |
Returns a Boolean indicating whether the specified directory exists.
| |
| Drives |
Returns a read-only collection of all available drive names.
| |
| Equals(Object) | (Inherited from Object.) | |
| FileExists(String) |
Returns a Boolean indicating whether the specified file exists.
| |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetDirectories(String) |
Returns a collection of strings representing the path names of subdirectories within a directory.
| |
| GetDirectories(String, SearchOption, array<String>[]()[][]) |
Returns a collection of strings representing the path names of subdirectories within a directory
| |
| GetDirectoryInfo(String) |
Returns a DirectoryInfo object for the specified path.
| |
| GetDriveInfo(String) |
Returns a DriveInfo object for the specified drive.
| |
| GetFileInfo(String) |
Returns a FileInfo object for the specified file.
| |
| GetFiles(String) |
Returns a read-only collection of strings representing the names of files within a directory.
| |
| GetFiles(String, SearchOption, array<String>[]()[][]) |
Returns a read-only collection of strings representing the names of files within a directory.
| |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetName(String) |
Parses the file name out of the path provided.
| |
| GetParentPath(String) |
Returns the parent path of the provided path.
| |
| GetTempFileName()()()() |
Creates a uniquely named zero-byte temporary file on disk and returns the full path of that file.
| |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| MoveDirectory(String, String) | ||
| MoveDirectory(String, String, UIOption) | ||
| MoveDirectory(String, String, Boolean) | ||
| MoveDirectory(String, String, UIOption, UICancelOption) | ||
| MoveFile(String, String) | ||
| MoveFile(String, String, UIOption) | ||
| MoveFile(String, String, Boolean) | ||
| MoveFile(String, String, UIOption, UICancelOption) | ||
| OpenTextFieldParser(String) |
The OpenTextFieldParser method allows you to create a TextFieldParser Object, which provides a way to easily and efficiently parse structured text files, such as logs.
The TextFieldParser object can be used to read both delimited and fixed-width files.
| |
| OpenTextFieldParser(String, array<Int32>[]()[][]) |
The OpenTextFieldParser method allows you to create a TextFieldParser Object, which provides a way to easily and efficiently parse structured text files, such as logs.
The TextFieldParser object can be used to read both delimited and fixed-width files.
| |
| OpenTextFieldParser(String, array<String>[]()[][]) |
The OpenTextFieldParser method allows you to create a TextFieldParser Object, which provides a way to easily and efficiently parse structured text files, such as logs.
The TextFieldParser object can be used to read both delimited and fixed-width files.
| |
| OpenTextFileReader(String) |
Opens a StreamReader.
| |
| OpenTextFileReader(String, Encoding) |
Opens a StreamReader.
| |
| OpenTextFileWriter(String, Boolean) |
Opens a StreamWriter.
| |
| OpenTextFileWriter(String, Boolean, Encoding) |
Opens a StreamWriter.
| |
| ReadAllBytes(String) | ||
| ReadAllText(String) |
Reads from a text file.
| |
| ReadAllText(String, Encoding) |
Reads from a text file.
| |
| RenameDirectory(String, String) |
Renames a directory.
| |
| RenameFile(String, String) |
Renames a file.
| |
| ToString()()()() | (Inherited from Object.) | |
| WriteAllBytes(String, array<Byte>[]()[][], Boolean) |
Writes data to a binary file.
| |
| WriteAllText(String, String, Boolean) |
Writes text to a file.
| |
| WriteAllText(String, String, Boolean, Encoding) |
Writes text to a file.
|
| Object | |
| FileSystem | |