This program gets into an endless loop when run against a simple file like: Now is the time for all good men to come to the aid of their party. '%--_XYENCode_start--’ ~',*','^'TF'XP',*','^'BXci_/_~I/~I/'Q2',*','^'BXp'Q2',*',’ '^~ )~>~ ~ ',*','^'BXp'Q2',*','^’ '%--_XYENCode___end--’ I can't see my error.