save. Saving file to disk

filename;options]   [3.4.0]

Method saves object to file in specified format and with specified name.

format-format of saving file (text or binary)
filename-name of file and path for the file to be saved
options-hash, in which you can specify $.charset[charset] of saving text file

Note: if file with specified filename is exist, it will be overwrited.
Note: to append some text to a file, use ^[append;].


This code will save object of class
file as archive.txt in text format to directory /arch/.

Copyright © 1997–2017 Art. Lebedev Studio | Last updated: 19.09.2009