GeneralRead from file

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
remusmp
Posts: 25
Joined: Sat Oct 17, 2009 8:37 pm

Read from file

Post by remusmp »

Hello,

I'd like to ask you whether it's possible or not to read data from file. I would like to build a table with some data that is in a txt file. I know the number of rows, the number of columns, I just need to fill in the table with data from a separate file.

Thanks.

R.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: Read from file

Post by phi »

This can be done manually with the \openin, \read and \closein primitives, or, less tediously, with packages like datatool or pgfplotstable.
Post Reply