Std Lib C-plus-plus program for filtering text files