% This file is public domain. % % Test \testfileexistence. % \ifx\undefined\eplain \input eplain\fi \testfileexistence{tex} \iffileexists \else \message{\jobname.tex does not exist, but it should.} \fi \testfileexistence[README]{} \iffileexists \else \message{README does not exist, but it should.} \fi \testfileexistence[foo]{bar} \iffileexists \message{foo.bar exists, but it shouldn't.} \fi \bye