method readUInt8

uint8 readUInt8();

Argumente

Zurückgegebener Wert

This method reads an unsigned 8 bit number from the stream and advance the stream's position. If the stream does not contain enough data for an atomic read then the read will fail and the stream's position is unaffected. The bigEndian property controls the interpretation of the byte order of the stream.
var fileStreamObj = shell.serviceManager.basics.fileStream;
var streamReaderObj = shell.serviceManager.basics.rawStreamReader;

//test.txt file must be created by using rawStreamWriter
//for proper read back
fileStreamObj.openForRead("c:\\temp\\test.txt");
streamReaderObj.stream = fileStreamObj;
var firstValue = streamReaderObj.readUInt08();
var secondValue = streamReaderObj.readUInt08();

fileStreamObj.close();