Contents

Roo

File.read_uint8

Reads the next byte from this File object and returns it as an 8-bit unsigned integer Number object. The byte is read from the zero-based File.pos position. File.pos is then incremented by 1. If this File object is invalid then the getter returns Nothing.

var f = File("/Users/garry/Desktop/test.txt")
f.read_uint8 # E.g: 73