Morrowind Mod:XFileSeek
The UESPWiki – Your source for The Elder Scrolls since 1995
< Mod / Morrowind: Morrowind Mod: MWSE
A function added by MWSE.
xFileSeek moves the current reading position to the specified offset in the file. You should call this or xRewind every frame before using other file functions. Use an offset divisible by 2 to read shorts and an offset divisible by 4 to read longs. (This function isn't very useful if the file contains string data.)
Syntax[edit]
xFileSeek filename (string) offset (long)
Example[edit]
string fileName Setx fileName to "testFile.txt" xFileSeek fileName 0
See Also[edit]
xFileRewind
xFileReadText
xFileWriteText
xFileReadShort
xFileReadLong
xFileReadFloat
xFileReadString
xFileWriteShort
xFileWriteLong
xFileWriteFloat
xFileWriteString