Array.save

Function/Meaning

Write the array to a file.

Type
Arrayclassmethod of
Syntax
save(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 (cannot be used 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

Write the array to a file.
Each member is output line by line, but references to objects, classes, functions, etc. are blank lines.