I'm curious as to whether it's possible to insert an entire separate file into a LaTeX document as an inline command. For example, I have the following LaTeX code:
\begin{Verbatim}[frame=single]
%Want to insert all the text from another file here
\end{Verbatim}
So where it says %Want to insert... I'd like to insert all of the text from another file (in the same directory) into the .tex document so that the text in the other file appears in a box in the .tex document.
I hope that's clear, if not I'll clarify in the comments.


listingsfor including a file or parts of a file. What exactly do you mean with "inline command"? Should the content of file, for example "to be included", be included inline ( ... Textto be inline included...) or should only the macro be inline, like\lstinputlisting{filename}? If you want the latter one just use\lstinputlisting... – Kurt Feb 25 at 16:17doc.tex, use\VerbatimInput{doc.tex}. Also, you may want to comment out (use%) thecommandcharsandcommentcharkeys until you understand what they do. – nnunes Feb 25 at 16:23