fixed Cat not writing special variables in file by using "EOF", tested in XP.