메소드 | 설명 | |
---|---|---|
ArchiveDatedFile ( string fileName, string dateFormattedDirectory = "" ) : bool |
Archives a file into a date formatted directory
|
|
ArchiveFile ( string currentFileName, string archiveFileName ) : bool |
Rolls over a file using the default archive settings
|
|
ReadCurrentFileByPath ( string fileName ) : byte[] |
Reads a file from the "current" directory by a filename
|
|
ReadFile ( |
Reads the contents of a file already opened
|
|
VerifyDirectory ( string directoryName, bool createIfMissing = true ) : bool |
Verifies the existence of or creates a new directory, also creates the base directory if necessary
|
|
WriteToFile ( string fullFileName, byte bytes, FileMode writeMode = FileMode.Truncate ) : void |
Writes a bytestream to a specific file
|
public ArchiveDatedFile ( string fileName, string dateFormattedDirectory = "" ) : bool | ||
fileName | string | the file to roll over |
dateFormattedDirectory | string | overrides the default DatedBackupDirectory setting |
리턴 | bool |
public ArchiveFile ( string currentFileName, string archiveFileName ) : bool | ||
currentFileName | string | the file to be rolled over |
archiveFileName | string | the filename to be rolled over to |
리턴 | bool |
public ReadCurrentFileByPath ( string fileName ) : byte[] | ||
fileName | string | the file to read in |
리턴 | byte[] |
public ReadFile ( |
||
file | the file to read from | |
리턴 | byte[] |
public VerifyDirectory ( string directoryName, bool createIfMissing = true ) : bool | ||
directoryName | string | the directory to create |
createIfMissing | bool | creates the directory if it doesn't already exist |
리턴 | bool |
public WriteToFile ( string fullFileName, byte bytes, FileMode writeMode = FileMode.Truncate ) : void | ||
fullFileName | string | the fully qualified filename (with pathing) |
bytes | byte | the data to write |
writeMode | FileMode | should this file be overwritten or appended to |
리턴 | void |