Open main menu

UESPWiki β

Morrowind Mod:XFileRewind

< Mod / Morrowind: Morrowind Mod: MWSE

A function added by MWSE.

xFileRewind moves the current reading position to the start of the file. Call this or xFileSeek at the start of any script which uses file reading or writing functions, otherwise you will have problems with the current file position not being as expected.

SyntaxEdit

xFileRewind filename (string)

ExampleEdit

long fileName

Setx fileName to xStringBuild "testFile.txt"
xFileRewind fileName

See AlsoEdit