Library for printing text tables.
For instance, we have input file test-table.tbl:
first;second;third
1;2;3
1;1;2
3;2;3
Parse input file:
(setf my-table (txt-tbl:parse-file "test-table.tbl"))
After that, we can dump it to file:
(with-open-file (s "result-table.txt" :direction :output)
(txt-tbl:print-table my-table :stream s))
The result is:
first | second | third |
=========================
1 | 2 | 3 |
1 | 1 | 2 |
3 | 2 | 3 |