JHFile Methods

DCSoft.DBUtilityGeneric

JHFile Methods

The JHFile type exposes the following members.

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