int[] readFileData(string filePath, int64 startPosition, int count)
Reads bytes from a file
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
filePath |
string The path of the file |
startPosition |
int64 The position to start reading the file from |
count |
int The number of bytes to read from the file |
Return
An int array of byte values
Examples
var fileData = null;
var fileDetails = KioFileIO.getFileDetails('/home/kiosk/Documents/Test.txt');
if (fileDetails.exists)
fileData = KioFileIO.readFileData('/home/kiosk/Documents/Test.txt', 0, fileDetails.length);
Requirements
KioWare OS (Linux®) version 1.0 or greater.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.