JHFile.ReadText Method (String)

DCSoft.DBUtilityGeneric

JHFileReadText Method (String)
用 UTF-8 格式的编码,从文件中读取字符串形式的流,文件不存在或异常返回 string.Empty

Namespace: DCSoft.Utility.IO
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static string ReadText(
	string filePath
)

Parameters

filePath
Type: SystemString
要读取的完整文件路径

Return Value

Type: String
返回字符串形式的流
See Also