Morrowind Mod:XFileWriteText

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

A function added by MWSE.

xFileWriteText writes formatted string to the file at the current position and advances. The file is then truncated at the current position (just after the end of the new value), so you cannot use this to modify the values in the middle of an existing file. The formatting rules are the same as for the xStringBuild function with one addition. Placing a % at the end of the pattern will suppress the NULL that is normally printed, so a format string ending with "%N%" can be used to create a normal text file.

Syntax[edit]

xFileWriteText filename (string), format (string), ...

Example[edit]

See Also[edit]

xFileRewind
xFileSeek
xFileReadText
xFileReadShort
xFileReadLong
xFileReadFloat
xFileReadString
xFileWriteShort
xFileWriteLong
xFileWriteFloat
xFileWriteString