Save File as UTF-8 text file

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

Syntax

C#
public bool SaveFile(
	string absolutePath,
	string contents,
	bool append
)
Visual Basic
Public Function SaveFile ( _
	absolutePath As String, _
	contents As String, _
	append As Boolean _
) As Boolean
Visual C++
public:
bool SaveFile(
	String^ absolutePath, 
	String^ contents, 
	bool append
)

Parameters

absolutePath
Type: System..::..String
Absolute path of file to sav
contents
Type: System..::..String
String contents
append
Type: System..::..Boolean
If true, contents will be append to absolutePath

Return Value

True, if file was correctly saved. If false, read ErrorMessage property to know what happened

Exceptions

ExceptionCondition
LLCryptoLib..::..LLCryptoLibExceptionTrying SaveFile with an empty filename

See Also