My question is somewhat related to my previous one (See Underfull \hbox warning about alignement in a csvsimple table
I need to add a caption to a csvsimple-generated longtable, but if I enclose my csv table inside a \table element, it will take just one page and be truncated at the end (even though it would appear on the list of tables).
My aim is to have this table appearing on my List of tables.
Is there any parameter of csvreader that allows it to affect a caption to a table generated with it, so that it would appear on the list of tables?

late after last line=\\\hline\caption{My nice table}did it. – Hakim Mar 11 '16 at 15:39