void writeFileDataBase64(string filePath, string base64Data, bool append)

Writes base64 data to a file

Security

Trust Level Required: Full Trust

Parameters

Name Description
filePath string
The path of the file
base64Data string
Each byte must be base64 encoded
append bool
True to append to the end of the file

Return

Nothing returned

Examples


var filePath = '/home/kiosk/Documents/Test.txt';
var fileDetails = KioFileIO.getFileDetails(filePath);
if (!fileDetails.exists)
	KioFileIO.createFile(filePath);
KioFileIO.writeFileDataBase64(filePath, btoa('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.