WriteArrayToFile

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Similar to ReadArrayFromFile, only this function writes data from an array variable into a file.

  • If the file does not exist, it is created.
  • If append is non-zero, the new data is appended to any existing data in the file, otherwise all existing data is erased and overwritten.

Syntax

[help]
(successful:0/1) WriteArrayToFile filePath:string append:0/1 sourceArray:array_var

Example

WriteArrayToFile "data_file.txt" 1 arrVar

Notes

  • filePath is relative to the game's installation path.

See Also