@@ -11,7 +11,7 @@ _Write global data to file or splayed to a directory_
1111
1212## ` save `
1313
14- _ Write a global variable to file _
14+ _ Write a global variable to file and optionally format data _
1515
1616``` syntax
1717save x save[x]
@@ -20,35 +20,24 @@ save x save[x]
2020Where ` x ` is a symbol atom or vector of the form ` [path/to/]v[.ext] ` in which
2121
2222- ` v ` is the name of a global variable
23- - ` path/to/ ` is a file path (optional)
24- - ` .ext ` is a file extension (optional)
23+ - ` path/to/ ` is a file path (optional). If a file
24+ - exists, it is overwritten
25+ - does not exist, it is created, with any required parent directories
26+ - ` .ext ` is a file extension (optional) which effects the file content format. Options are:
27+ - ` (none) ` for binary format
28+ - ` csv ` for comma-separated values
29+ - ` txt ` for plain text)
30+ - ` xls ` for Excel spreadsheet format
31+ - ` xml ` for Extensible Markup Language (XML))
32+ - ` json ` for JavaScript Object Notation (JSON) Since v3.2 2014.07.31.
2533
26- writes global variable/s ` v ` etc. to file and returns the filename/s.
27-
28-
29- ### File path
30-
31- If a file
32-
33- - exists, it is overwritten
34- - does not exist, it is created, with any required parent directories
3534
36-
37- ### Format
38-
39- The format used depends on the file extension:
40-
41- ``` txt
42- (none) binary
43- csv comma-separated values
44- txt plain text
45- xls Excel spreadsheet
46- xml Extensible Markup Language (XML)
47- json JavaScript Object Notation (JSON), available since v3.2 2014.07.31
48- ```
35+ writes global variable/s ` v ` etc. to file and returns the filename/s.
4936
5037!!! tip "There are no corresponding formats for [ ` load ` ] ( load.md ) . Instead, use [ File Text] ( file-text.md ) ."
5138
39+ :fontawesome-regular-hand-point-right:
40+ [ .h] ( doth.md ) (data serialization tools)
5241
5342### Examples
5443
@@ -131,9 +120,6 @@ rsave x rsave[x]
131120Where ` x ` is a table name as a symbol atom, saves the table, in binary format, splayed to a directory of the same name.
132121The table must be fully enumerated and not keyed.
133122
134-
135- ### File path
136-
137123If the file
138124
139125- exists, it is overwritten
0 commit comments