Open main menu

UESPWiki β

Morrowind Mod:XFileSeek

< 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.)

SyntaxEdit

xFileSeek filename (string) offset (long)

ExampleEdit

string fileName

Setx fileName to "testFile.txt"
xFileSeek fileName 0

See AlsoEdit