类库说明文档
![]() | JHFile Class |
操作文件,该类为密封类

Namespace: DCSoft.Utility.IO
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public sealed class JHFile
The JHFile type exposes the following members.

Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetFileByteSize |
获取当前文件大小(字节)
|
![]() ![]() | GetFileUnitSize(Int64) |
获取指定文件大小的单位表示形式
|
![]() ![]() | GetFileUnitSize(String) |
获取当前文件大小的单位表示形式
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | ReadBuffer(String) |
用 UTF-8 格式的编码,从当前流读取字节序列,文件不存在或异常返回 null
|
![]() ![]() | ReadBuffer(String, Encoding) |
用指定的字符编码,从当前流读取字节序列,文件不存在或异常返回 null
|
![]() ![]() | ReadText(String) |
用 UTF-8 格式的编码,从文件中读取字符串形式的流,文件不存在或异常返回 string.Empty
|
![]() ![]() | ReadText(String, Encoding) |
用指定的字符编码,从文件中读取字符串形式的流,文件不存在或异常返回 string.Empty
|
![]() | ToString | (Inherited from Object.) |
![]() ![]() | WriterBuffer(String, Byte, Boolean) |
用 UTF-8 格式的编码,向文件中写字节序列
|
![]() ![]() | WriterBuffer(String, Byte, Encoding, Boolean) |
用指定的字符编码,向文件中写字节序列
|
![]() ![]() | WriterText(String, String, Boolean) |
用 UTF-8 格式的编码,向文件中写字符串
|
![]() ![]() | WriterText(String, String, Encoding, Boolean) |
用指定的字符编码,向文件中写字符串
|
