\newcommand{\bye}{}  % Allows input of TeX file ending with \bye

\def\relaxhack{\relax}
\def\donehack{\par}
\newif\ifmore
\moretrue
\loop
\read16 to\filename
\ifx\filename\donehack\morefalse\fi
\ifx\filename\relaxhack\morefalse\fi
\ifmore\input{\filename}\repeat

\ifx\filename\relaxhack
\def\endhack{\end}
\moretrue
\loop
\read16 to\inputline
\ifx\inputline\endhack\morefalse\fi
\ifmore\inputline\repeat
\fi
