C-plus-plus programs to filter text files