void WriteFileData(string, int[], bool)
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. |
Remarks
The kiosk user must have sufficient permissions to perform any file IO operation that performs a read or write operation on the current disk.
Examples
var alphabet = [];
for(var i = 0; i < 26; i++){
alphabet[i] = i + 65;
}
var sampleFile = KioApp.DoUrlSubstitution('$$KIO_USERDATA$$') + 'sampleFile.txt';
//a falsy last arg will overwrite any existing text in the file.
KioFileIO.WriteFileData(sampleFile, alphabet, 0);
Requirements
KioWare for Windows version 8.2 or greater.