I like using pgfplotstable because I can feed data in tables directly to it and generate a latex table. However, not all of my coauthors have the right packages to compile pgf-enabled latex.
Since pgfplotstable merely generates latex source for the tabular environment, I was wondering if there was a way to extract the output source and plug that directly into a latex file ?
Update: I thought Christian's answer would work, but it doesn't appear to. Here's an MWE - the original file compiles and produces output, but the source code is not captured in the file tablespace.tex
\documentclass{article}
\usepackage{pgfplotstable}
\begin{document}
\pgfplotstabletypeset[outfile=tablespace.tex,columns = {a,b}]{
a b
5000 1.234e5
6000 1.631e5
7000 2.1013e5
9000 1000000
}
\end{document}
Up-Update: problem solved although I'm not sure how.