Reads a text file.

Namespace: LLCryptoLib.Utils
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public string ReadTextFile(
	string filePath,
	Encoding enc
)
Visual Basic
Public Function ReadTextFile ( _
	filePath As String, _
	enc As Encoding _
) As String
Visual C++
public:
String^ ReadTextFile(
	String^ filePath, 
	Encoding^ enc
)

Parameters

filePath
Type: System..::..String
The file path.
enc
Type: System.Text..::..Encoding
The text encoding.

Return Value

The content of the read file as a string.

Remarks

In case this method return 'null', check ErrorMessage.

See Also