Метод | Описание | |
---|---|---|
FileExists ( string relativePath ) : bool | ||
FileSystem ( ) : System | ||
FileSystem ( IFileStreamFactory streamFactory ) : System | ||
GetAllFilesWithExtensionWithinFolder ( string folder, string fileExtension ) : string[] | ||
ReadFileIntoStreamReader ( string filename ) : |
||
ReadIntoFileStream ( string path ) : Stream | ||
ReadTextFile ( string filename ) : string | ||
SaveFile ( string filename, byte fileContent ) : void |
Метод | Описание | |
---|---|---|
GetEncoding ( string filename ) : |
Determines a text file's encoding by analyzing its byte order mark (BOM) Defaults to ASCII when detection of the text file's endianness fails. Function originally from http://stackoverflow.com/questions/3825390/effective-way-to-find-any-files-encoding
|
public FileExists ( string relativePath ) : bool | ||
relativePath | string | |
Результат | bool |
public FileSystem ( IFileStreamFactory streamFactory ) : System | ||
streamFactory | IFileStreamFactory | |
Результат | System |
public GetAllFilesWithExtensionWithinFolder ( string folder, string fileExtension ) : string[] | ||
folder | string | |
fileExtension | string | |
Результат | string[] |
public ReadFileIntoStreamReader ( string filename ) : |
||
filename | string | |
Результат |
public ReadIntoFileStream ( string path ) : Stream | ||
path | string | |
Результат | Stream |
public ReadTextFile ( string filename ) : string | ||
filename | string | |
Результат | string |
public SaveFile ( string filename, byte fileContent ) : void | ||
filename | string | |
fileContent | byte | |
Результат | void |