I have forgotten how to use c++ I guess.
I want to read a file, check each line for specific text, if the text exists, I split the line up, probably by spaces, and then output a formatted view of the line, showing only a couple of "columns" or "items" of the split line.
So far, I have read the file and it outputs all of the lines, I need help checking the line for text, and splitting the line, preferably into an array I suppose.
I use grep at the command line, but need a c equiv.
some sort of split, or spliti(); type function.
Please help me out.
Thanks in advance!