메소드 | 설명 | |
---|---|---|
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 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 SaveFile ( string filename, byte fileContent ) : void | ||
filename | string | |
fileContent | byte | |
리턴 | void |