readFile2String

open fun readFile2String(filePath: String): String

Return the string in file.

Return

the string in file

Parameters

filePath

The path of file.

open fun readFile2String(filePath: String, charsetName: String): String

Return the string in file.

Return

the string in file

Parameters

filePath

The path of file.

charsetName

The name of charset.

open fun readFile2String(file: File): String

Return the string in file.

Return

the string in file

Parameters

file

The file.

open fun readFile2String(file: File, charsetName: String): String

Return the string in file.

Return

the string in file

Parameters

file

The file.

charsetName

The name of charset.