Project

General

Profile

Hsave » History » Version 10

Per Amundsen, 02/16/2023 12:47 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 5 Per Amundsen
*/hsave [-abBinsu] <name> <filename> [section]*
4 1 Per Amundsen
5 2 Per Amundsen
Saves a hash table to a file.
6 1 Per Amundsen
7 7 Per Amundsen
_See also [[/hload]], [[/hmake]], [[/hfree]], [[/hadd]], [[/hdel]], [[$hget]], [[$hfind]]._
8
9 1 Per Amundsen
*Switches*
10
11 9 Per Amundsen
table(ktable).
12
|*Switch*|*Description*|
13 10 Per Amundsen
| -s | Displays the result. |
14 9 Per Amundsen
| -b | Saves binary files. [[$cr]] and [[$lf]] are preserved when saving as binary files. Ignored if -i switch used. |
15
| -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. |
16 10 Per Amundsen
| -i | Treats the file as an ini file. You can specify an optional section name after the filename. |
17
| -n | Load file as data only, with no items. When loading with -n each line of data is assigned an N item value, starting at N = 1. |
18
| -a | Appends to an existing file instead of overwriting it. |
19
| -u | Includes unset items. |
20 1 Per Amundsen
21
*Parameters*
22
23 9 Per Amundsen
table(ktable).
24
|*Parameter*|*Description*|
25
| <name> | The hash table to save. |
26
| <filename> | The filename to save to. |
27
| [section] | Section of ini tile to save to. (used witth -i) |