EAPUtilReadTextFile Method |
Read a text file into a string.
Note that this method catches any error and logs it. No error will be thrown if there is a problem reading the file.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string ReadTextFile(
string path,
string defaultValue
)
Public Shared Function ReadTextFile (
path As String,
defaultValue As String
) As String
Parameters
- path
- Type: SystemString
The logical path for the file. - defaultValue
- Type: SystemString
The default value file not found.
Return Value
Type:
StringThe file content or the default if file not found.
See Also