Contents

Roo

File.read_int16

Reads the next two bytes from this File object and returns it as a 16-bit integer Number object. The value is read from the zero-based File.pos position. File.pos is then incremented by 2. If this File object is invalid then the getter returns Nothing.

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