[Tex/LaTex] Importing separate file (literally/verbatim) into the LaTeX file

includeverbatim

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.

Best Answer

This question is answered in the following link:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=verbfile