> ! Text line contains an invalid character. > l.5 \immediate\write\outfile{^^@ Maybe it's the catcode? \catcode0 = 12