p-ranav / tabulate

Table Maker for Modern C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to print it to a file?

loumalouomega opened this issue · comments

It is possible to print the table to a file without all the special characters?

tabulate supports exporting to markdown, asciidoc, and latex. See here for an example. You could write that table to a file trivially.

You could also use table.str() to get a string representation (what you usually see when you print out the table) that you could write to file.

Thanks, I saw the exporters, but I was looking for plain text. I will try as you say. Thanks, nice lib

Yes, it works, thanks a lot