Morrowind Mod:XFileRewind

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

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.

Syntax[edit]

xFileRewind filename (string)

Example[edit]

long fileName

Setx fileName to xStringBuild "testFile.txt"
xFileRewind fileName

See Also[edit]

xFileSeek
xFileReadText
xFileWriteText
xFileReadShort
xFileReadLong
xFileReadFloat
xFileReadString
xFileWriteShort
xFileWriteLong
xFileWriteFloat
xFileWriteString