Impasta1000
Impasta1000

Reputation: 1

Write j-text utils table to file

I am working on a project which handles orders from customers.

I am using this util to display my data into a table:j-text utils. I would like to know if it is possible to write the table as how it would be printed to a file?

This is the display table enter image description here

Upvotes: 0

Views: 3709

Answers (1)

babyinEclipse
babyinEclipse

Reputation: 513

This is old question. But just to help others. You have to use

TextTable tt = new TextTable(columnNames, data); tt.printTable(outputFile, 0);

where outputFile is object of PrintStream

Upvotes: 1

Related Questions