Project

General

Profile

Hsave » History » Revision 9

Revision 8 (Per Amundsen, 10/31/2022 12:18 PM) → Revision 9/10 (Per Amundsen, 02/16/2023 12:45 PM)

_Added in 1.9.0_ 

 */hsave [-abBinsu] <name> <filename> [section]* 

 Saves a hash table to a file. 

 _See also [[/hload]], [[/hmake]], [[/hfree]], [[/hadd]], [[/hdel]], [[$hget]], [[$hfind]]._ 

 *Switches* 

 table(ktable). 
 |*Switch*|*Description*| 
 -s = Displays the result. 
 | -b | - Saves binary files. [[$cr]] and [[$lf]] are preserved when saving as binary files. Ignored if -i switch used. | 
 | -B | - Uses a larger index than -b to allow longer binary data to be saved. This is not compatible with files created by the -b switch. | 
 -i = Treats the file as an ini file. You can specify an optional section name after the filename. 
 | -n = Load file as data only, with no items. When loading with | n -n each line of data is assigned an N item value, starting at N = 1. | 
 -a = Appends to an existing file instead of overwriting it. 
 -u = Includes unset items. 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | <name> | - The hash table to save. | 
 | <filename> | - The filename to save to. | 
 | [section] | - Section of ini tile to save to. (used witth -i) |