Open main menu

UESPWiki β

Morrowind Mod:XFileWriteText

< Mod / Morrowind: Morrowind Mod: MWSE

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.

SyntaxEdit

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

ExampleEdit

See AlsoEdit