void writeFileData(string filePath, int[] bytes, bool append)

Write bytes to a file

Security

Trust Level Required: Full Trust

Parameters

Name Description
filePath string
The path of the file
bytes int[]
The data to write
append bool
True to append to the end of the file, false to overwrite 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.writeFileData(filePath, [ 0x74, 0x65, 0x73, 0x74 ], true); // 'test'

Requirements

KioWare OS (Linux®) version 1.0 or greater.


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