string ReadFileText(string filePath, int maxCharsToRead = -1, string characterEncoding = null, bool useByteOrderMarks = true)
Reads characters from a file, or by default; the whole file. Trust Level Required: High
Parameters
Name | Description |
filePath | The path of the file. |
maxCharsToRead | The maximum number of characters to read or -1 to read until the end of the file. |
characterEncoding | Standard character encoding name to use when interpreting bytes to characters. |
useByteOrderMarks | True to use byte order marks. |
Return
The file text.