fix PrinTXTFile