# input a file and then input a modified version of this file again

I want to create short profiles for people that open up when someone clicks on the name and also a list of all people at the end of the document.

I got a command that sets up how the box should look:

\newcommand{\Steckbrief}[3]{
#1
\begin{tabular}{l}
Name: #2 //
Location: #3
\end{tabular}
}


And a second command to shorten the reference to put it into the text:

\newcommand{\Me}{\ocgtext{Me}{
\Steckbrief
{\includegraphics[width=4cm]{img.jpg}}
{Me}
{Here}
}}


Now i need

\Steckbrief
{\includegraphics[width=4cm]{img.jpg}}
{Me}
{Here}


to be put into the appendix without using two separate files, how can i do that?