int[] ReadFileData(string, int64, int)

Reads bytes from a file from a specified starting point

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. This number must be less than the size of the file in bytes.
byteLength int
The number bytes to read from the file.

Return

An int array of byte values.

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 sampleFile = KioApp.DoUrlSubstitution('$$KIO_USERDATA$$') + 'sampleFile.txt';
var fileInfo = KioFileIO.GetFileDetails(sampleFile);
alert(KioFileIO.ReadFileData(sampleFile, 0, (JSON.parse(fileInfo).Length)));
    

Requirements

KioWare for Windows version 8.2 or greater.