Next: , Previous: Operations, Up: Grids


4.4 Input and Output

Note: the definitions for reading and writing grids are at present minimal and incomplete.
These definitions allow reading and writing of grids from and to files.

— Function: grid:read-data-file filename &optional separator include-count discard-header

Read the data in the file into a list.

— Function: grid:read-data-stream &optional separator include-count stream

Read the data from the stream and collect a list of lists of values from columns separated by whitespace. If include-count is a number, line count starting at that number will be prepended as the first field.

— Function: grid:read-vector-from-string string count &optional start end

Read the count element vector from a string.