Morrowind Mod:XFileReadShort

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

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.

Syntax[edit]

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

Example[edit]

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

See Also[edit]

xFileRewind
xFileSeek
xFileReadText
xFileWriteText
xFileReadLong
xFileReadFloat
xFileReadString
xFileWriteShort
xFileWriteLong
xFileWriteFloat
xFileWriteString