title | categories | version | filesystem | usage | feature |
---|---|---|---|---|---|
open |
filesystem
|
0.90.0 |
Load a file into a cell, converting to table if possible (avoid by appending '--raw').
|
Load a file into a cell, converting to table if possible (avoid by appending '--raw').
|
default |
{{ $frontmatter.filesystem }}
> open {flags} (filename) ...rest
--raw, -r
: open file as raw binary
filename
: The filename to use....rest
: Optional additional files to open.
input | output |
---|---|
nothing | any |
string | any |
Open a file, with structure (based on file extension or SQLite database header)
> open myfile.json
Open a file, as raw bytes
> open myfile.json --raw
Open a file, using the input to get filename
> 'myfile.txt' | open
Open a file, and decode it by the specified encoding
> open myfile.txt --raw | decode utf-8
Create a custom from
parser to open newline-delimited JSON files with open
> def "from ndjson" [] { from json -o }; open myfile.ndjson
Support to automatically parse files with an extension .xyz
can be provided by a from xyz
command in scope.