I wonder whether there is something like the filecontents environment, but without writing the actual data to the filesystem.
With the filecontents environment, I can write a texfile like this:
\documentclass{article}
\begin{filecontents}{myfile.tex}
Hello world!
\end{filecontents}
\begin{document}
\input{myfile.tex}
\end{document}
This compiles nicely, but creates the file myfile.tex in the working directory. I wonder whether there is an alternative way to get the same compilation result, but without creating the file myfile.tex in the file system?
Alternatively, is there a command that I can put after the \end{document} to have myfile.tex removed?