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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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