Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 | |
return | bool |
public FileSystem ( IFileStreamFactory streamFactory ) : System | ||
streamFactory | IFileStreamFactory | |
return | System |
public GetAllFilesWithExtensionWithinFolder ( string folder, string fileExtension ) : string[] | ||
folder | string | |
fileExtension | string | |
return | string[] |
public ReadFileIntoStreamReader ( string filename ) : |
||
filename | string | |
return |
public ReadIntoFileStream ( string path ) : Stream | ||
path | string | |
return | Stream |
public ReadTextFile ( string filename ) : string | ||
filename | string | |
return | string |
public SaveFile ( string filename, byte fileContent ) : void | ||
filename | string | |
fileContent | byte | |
return | void |