Ulf <br><br>When I embed your code in a \documentclass{article} file, I get the following strange response:<br><br>! LaTeX Error: File `chart.csv' not found.<br>Type X to quit or &lt;RETURN&gt; to proceed,<br>or enter new name. (Default extension: csv)
<br>Enter file name: chart.cvs<br>(./chart.cvs) [1] (./table-to-tex.aux)<br>Output written on table-to-tex.dvi (1 page, 652 bytes).<br><br>Your idea converts a&nbsp; file with lines with enteries separated by commas&nbsp; into<br>a three column table as expected.
<br><br>Question: why do latex, pdflatex, and vlatex all fail to find the file the first time and find<br>it the second time?<br><br>I'm using&nbsp; latex and pdflatex from texlive 2005 on a laptop with SUSe linux.<br><br>David
<br><br>On 7/12/06, Ulf Markwardt &lt;<a href="mailto:ulf.markwardt@tu-dresden.de">ulf.markwardt@tu-dresden.de</a>&gt; wrote:<br>&gt; Thank you all,<br>&gt; <br>&gt; &gt;I am looking for a package that makes it possible to directly input data from
<br>&gt; &gt;a file into a table like \tabularfromfile{filename.csv}[formatoptions].<br>&gt; <br>&gt; here is the solution which is what I had in mind.<br>&gt; <br>&gt; {<br>&gt; \catcode`\,=\catcode`\&amp;<br>&gt; \catcode`\
<br>&gt; =\active%<br>&gt; \def<br>&gt; {\\ \hline}%<br>&gt; \begin{tabular}[hbt]{|c|c|c|}<br>&gt; % place header<br>&gt; \input{tabelle.csv}%<br>&gt; \end{tabular}%<br>&gt; }<br>&gt; <br>&gt; Ulf<br>&gt; _______________________________________________
<br>&gt; TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br>&gt; Mailing list archives: <a href="http://tug.org/pipermail/texhax/">http://tug.org/pipermail/texhax/</a><br>&gt; More links: <a href="http://tug.org/begin.html">
http://tug.org/begin.html</a><br>&gt; <br>&gt; Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax">http://tug.org/mailman/listinfo/texhax</a><br>&gt; Human mailing list managers: <a href="mailto:postmaster@tug.org">
postmaster@tug.org</a><br>&gt; <br><br>