I got the following problem, I use pgfplots(table) to generate plots and tables in my latex document from generated data. I would like to read additional information from a metadata file. The reason for that, is that the data depends on the architecture it was generated on, which I would like to write into the caption. Therefore I would like to store a caption, as well as other metainfo (like axis labels) in a csv file for each plot/table and read it when generating my document. I found datatool, xstring and some other packages which might be useful but could not figure out a way to achieve what I try to do.
Thanks in advance for any help!