Array.saveStruct

Function/Meaning

Outputs structured data to a file.

Type
Arrayclassmethod of
Syntax
saveStruct(storage:string, mode:string=null) :Array
Arguments
storage

File name to export

mode

Specifies the mode string when writing the file.

  • Specifying "c" gives the file a simple encryption (you can just load it with the load method).
  • You can specify "z" to compress the file and save it (it cannot be used with "c"; it can also be loaded by the load method as it is).
  • If you specify the offset in decimal after "o", it will be written from that byte position in the file.
  • If "b" is specified, it will be saved in binary format (it cannot be used together with other mode specifications; this can also be loaded by the load method as it is).
Return value

Returns the object itself of this Array class.

Explanation

Outputs the state of the element to a file in a recoverable state.
Each element can contain strings, real numbers, octet columns, and integers.
Also, if the element has an object, the contents of that object are also output to a file only if it is an object of the Array class or Dictionary class.
For other elements, void is output.