JHFile Class

DCSoft.DBUtilityGeneric

JHFile Class
操作文件,该类为密封类
Inheritance Hierarchy
SystemObject  DCSoft.Utility.IOJHFile

Namespace: DCSoft.Utility.IO
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class JHFile

The JHFile type exposes the following members.

Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodStatic memberGetFileByteSize
获取当前文件大小(字节)
Public methodStatic memberGetFileUnitSize(Int64)
获取指定文件大小的单位表示形式
Public methodStatic memberGetFileUnitSize(String)
获取当前文件大小的单位表示形式
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberReadBuffer(String)
用 UTF-8 格式的编码,从当前流读取字节序列,文件不存在或异常返回 null
Public methodStatic memberReadBuffer(String, Encoding)
用指定的字符编码,从当前流读取字节序列,文件不存在或异常返回 null
Public methodStatic memberReadText(String)
用 UTF-8 格式的编码,从文件中读取字符串形式的流,文件不存在或异常返回 string.Empty
Public methodStatic memberReadText(String, Encoding)
用指定的字符编码,从文件中读取字符串形式的流,文件不存在或异常返回 string.Empty
Public methodToString (Inherited from Object.)
Public methodStatic memberWriterBuffer(String, Byte, Boolean)
用 UTF-8 格式的编码,向文件中写字节序列
Public methodStatic memberWriterBuffer(String, Byte, Encoding, Boolean)
用指定的字符编码,向文件中写字节序列
Public methodStatic memberWriterText(String, String, Boolean)
用 UTF-8 格式的编码,向文件中写字符串
Public methodStatic memberWriterText(String, String, Encoding, Boolean)
用指定的字符编码,向文件中写字符串
Top
See Also