void writeFileText(string filePath, string text, bool append, string characterEncoding = null)

Writes text to a file

Security

Trust Level Required: Full Trust

Parameters

Name Description
filePath string
The path of the file
text string
The text to write
append bool
True to append to the end of the file, false to overwrite the file
characterEncoding (Optional) string
Standard character encoding name to use (ex. utf-8), or null to use the default encoding

Return

Nothing returned

Examples


var filePath = '/home/kiosk/Documents/Test.txt';
var fileDetails = KioFileIO.getFileDetails(filePath);
if (!fileDetails.exists)
	KioFileIO.createFile(filePath);
KioFileIO.writeFileText(filePath, 'test', true);

Requirements

KioWare OS (Linux®) version 1.0 or greater.


Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.