I had this code working (it was in an article I submitted for NTG-MAPS a while ago, july 2007). Now this same code gives an error on getbuffer. What happened to getbuffer? Is it possible a \fi has disappeared in the getbuffer code between now and last july? Is there a quick patch because now I get stuck on work that has to be finished. The error message from TeX: ! Incomplete \ifx; all text was ignored after line 6. <inserted text> \fi <to be read again> \relax \dodoreadfile ...d \relax \fi \dodoreadfileindeed \relax \the \everyafterrea... \mkdobuffer #1->\beginrestorecatcodes #1 \endrestorecatcodes \dodobuffer ...dcsname \else #2\fi }\mkdobuffer #1 \popmacro \currentbuffer \dodogetbuffer ...}\dobuffer {16}{#2}\mkgetbuffer \getvalue {\??bu #1\c!after } ... l.111 \question[number=1][buffer]{\getbuffer} The relevant part of the code, not working is the call to \@exmbuffer: ... \doifelse{#2}{\v!buffer}% {\def\filename{buffer}\def\thefile{#3}\let\@@exminput\@exmbuffer}% {.....}% \@@exminput\thefile \endgroup} % reading the file better outside the doif \def\@exminput#1{\input#1\relax} \def\@exmbuffer#1{#1} Help is appreciated. Hans van der Meer