maybeload – Prevent reloading of files
Defines a command \thisfileis, which will become \endinput if it's called for a second or subsequent time with a particular file name.
Maybe you are interested in the following packages as well.
- perfectcut: Delimiters whose size adjusts to the nesting
- automagic: Automagic numbering in Plain TeX
- texfot: Filter clutter from the output of a TeX run
- list: List ASCII text files