I have defined a style sheet which contains a table. Something along the following:
\begin{table}[h]
\centering
\begin{tabular}{ |c|c|c|c| }
\hline
Header 1 & Header 2 & Header 3 & Header 4 \\ \hline % Header row
% Put table content here!
\end{tabular}
\end{table}
What I want to do, is define some command in my style sheet that allows me to continually add content to this table in my preamble. I'm thinking of a command usage like the following:
\addtotable[1]{R1C1,R1C2,R1C3,R1C3}
\addtotable[2]{R2C1,R2C2,R2C3,R2C3}
Which would effectively result in the table being
\begin{table}[h]
\centering
\begin{tabular}{ |c|c|c|c| }
\hline
Header 1 & Header 2 & Header 3 & Header 4 \\ \hline % Header row
R1C1 & R1C2 & R1C3 & R1C4 \\ \hline
R2C1 & R2C2 & R2C3 & R2C4 \\ \hline
\end{tabular}
\end{table}

\makeatletterand\makeatothercommands for this to work. – zephyr Dec 01 '16 at 20:24