Свойство | Тип | Описание |
---|
Метод | Описание | |
---|---|---|
CopyFile ( string sourcePath, string targetPath ) : bool |
Copies the specified source file to the target file path.
|
|
CreateFile ( string path, string contents ) : bool |
Writes the specified contents to the specified file.
|
|
CreateFileTextWriter ( string path ) : |
Creates a file text writer used to create file output. This implementation returns a StreamWriter. |
|
CreateReadOnlyFile ( string path, string contents ) : bool |
Creates a read only file for the specified file or sets the file to read only if it already exists.
|
|
DeleteFile ( string path ) : bool |
Deletes the specified file from the file system.
|
|
DeleteFiles ( string path ) : int |
Deletes all files in the specified directory.
|
|
FileExists ( string path ) : bool |
Gets a value indicating if the specified file exists.
|
|
GetCountOfFilesInDirectory ( string path ) : int |
Gets a count indicating the number of files in the specified directory.
|
|
GetCountOfFilesInDirectoryAndSubdirectories ( string path ) : int |
Gets a count indicating the number of files in the specified directory and subdirectories.
|
|
IoFileUtils ( ) : System |
Base class constructor
|
|
IsFileReadOnly ( string path ) : bool |
Gets a value indicating if the specified file is read only.
|
|
ReadFileAsStream ( string path ) : |
Reads and returns the contents of the specified file as a file stream.
|
|
ReadFileAsString ( string path ) : string |
Reads and returns the contents of the specified file.
|
|
RemoveReadOnlyAttribute ( string path ) : bool |
Remove read only attribute from file.
|
public CopyFile ( string sourcePath, string targetPath ) : bool | ||
sourcePath | string | The path to the source file. |
targetPath | string | The path to the target file. |
Результат | bool |
public CreateFile ( string path, string contents ) : bool | ||
path | string | The path to the file. |
contents | string | The contents of the file. |
Результат | bool |
public CreateFileTextWriter ( string path ) : |
||
path | string | The path to the file. |
Результат |
public CreateReadOnlyFile ( string path, string contents ) : bool | ||
path | string | The path to the file to set as read only. |
contents | string | The contents of the file. |
Результат | bool |
public DeleteFile ( string path ) : bool | ||
path | string | The path to the file. |
Результат | bool |
public DeleteFiles ( string path ) : int | ||
path | string | The path to the directory. |
Результат | int |
public FileExists ( string path ) : bool | ||
path | string | The path to the file. |
Результат | bool |
public GetCountOfFilesInDirectory ( string path ) : int | ||
path | string | The path to the directory. |
Результат | int |
public GetCountOfFilesInDirectoryAndSubdirectories ( string path ) : int | ||
path | string | The path to the directory. |
Результат | int |
public IsFileReadOnly ( string path ) : bool | ||
path | string | The path to the file to determine if it is read only. |
Результат | bool |
public ReadFileAsStream ( string path ) : |
||
path | string | The path to the file. |
Результат |
public ReadFileAsString ( string path ) : string | ||
path | string | The path to the file. |
Результат | string |
public RemoveReadOnlyAttribute ( string path ) : bool | ||
path | string | The path to the file to remove read only attribute. |
Результат | bool |