Click or drag to resize

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
)

Parameters

path
Type: SystemString
The logical path for the file.
defaultValue
Type: SystemString
The default value file not found.

Return Value

Type: String
The file content or the default if file not found.
See Also