Open main menu

UESPWiki β

Morrowind Mod:XFileReadShort

< Mod / Morrowind: Morrowind Mod: MWSE

A function added by MWSE.

xFileReadShort reads the number of SHORTS (2 bytes) requested from the file at the current reading position. The current position is then advanced. Returns the number of values actually read followed by the values.

SyntaxEdit

count (long), ...: xFileReadShort filename (string), count (long)

ExampleEdit

long matches
long integer
setx matches integer to XFileReadShort "filename" 1

See AlsoEdit