From WikiChip
Difference between revisions of "mirc/commands/hsave"
(Created page with "The '''/hsave command''' is used to save a hash table to a file. == Synopsis == /hsave -sbniau <name> <filename> [section] == Switches == * '''-b''' - saves binary files. $...") |
|||
Line 9: | Line 9: | ||
* '''-a''' - appends to an existing file instead of overwriting it | * '''-a''' - appends to an existing file instead of overwriting it | ||
* '''-i''' - treats the file as an ini file. You can specify an optional [section] after the filename | * '''-i''' - treats the file as an ini file. You can specify an optional [section] after the filename | ||
− | * '''-s''' - display a message if successful: | + | * '''-s''' - display a message if successful: ''* Saved hash table <nowiki><table></nowiki> to <filename>'' |
* '''-u''' - forces items in the /hadd -uN unset list to be included. They are excluded by default. | * '''-u''' - forces items in the /hadd -uN unset list to be included. They are excluded by default. | ||
− | |||
== Parameters == | == Parameters == | ||
* '''<name>''' - the name of the hash table | * '''<name>''' - the name of the hash table |
Revision as of 23:11, 2 December 2013
The /hsave command is used to save a hash table to a file.
Synopsis
/hsave -sbniau <name> <filename> [section]
Switches
- -b - saves binary files. $cr and $lf are preserved when saving as binary files
- -n - save files as data only. Each value is saved on a new line
- -a - appends to an existing file instead of overwriting it
- -i - treats the file as an ini file. You can specify an optional [section] after the filename
- -s - display a message if successful: * Saved hash table <table> to <filename>
- -u - forces items in the /hadd -uN unset list to be included. They are excluded by default.
Parameters
- <name> - the name of the hash table
- <filename> - the name of the file the table is being saved to
- [section] - (optional) if -i is used, you can specify the section of the ini file
Example
None
Compatibility
Added:
Added On:
Note: Individual switches were not taken into consideration.