메소드 | 설명 | |
---|---|---|
CoverFile ( string pathName, string content ) : void |
覆盖文件 [没有会创建]
|
|
CreateFile ( string pathName ) : StreamWriter, |
创建文件
|
|
CreateFolder ( string pathName ) : DirectoryInfo, |
创建文件夹
|
|
DeleteFile ( string pathName ) : bool |
删除文件
|
|
GetAllFileSize ( string folderName ) : int |
返回文件夹大小
|
|
GetFileSize ( string path, string fileName ) : int |
返回文件大小
|
|
ReadFile ( string pathName ) : string | ||
ReadFile ( string pathName, string filenme ) : string |
读文件
|
|
ReadFileWithByte ( string pathName ) : byte[] | ||
WriteFileFromEnd ( string pathName, string content ) : void |
写文件 [没有会创建]
|
|
WriteFileLineFromEnd ( string pathName, string content ) : void |
写文件 按行写入[没有会创建]
|
public static CoverFile ( string pathName, string content ) : void | ||
pathName | string | |
content | string | |
리턴 | void |
public static CreateFile ( string pathName ) : StreamWriter, | ||
pathName | string | |
리턴 | StreamWriter, |
public static CreateFolder ( string pathName ) : DirectoryInfo, | ||
pathName | string | |
리턴 | DirectoryInfo, |
public static GetAllFileSize ( string folderName ) : int | ||
folderName | string | |
리턴 | int |
public static GetFileSize ( string path, string fileName ) : int | ||
path | string | |
fileName | string | |
리턴 | int |
public static ReadFile ( string pathName, string filenme ) : string | ||
pathName | string | |
filenme | string | |
리턴 | string |
public static ReadFileWithByte ( string pathName ) : byte[] | ||
pathName | string | |
리턴 | byte[] |
public static WriteFileFromEnd ( string pathName, string content ) : void | ||
pathName | string | |
content | string | |
리턴 | void |
public static WriteFileLineFromEnd ( string pathName, string content ) : void | ||
pathName | string | |
content | string | |
리턴 | void |