Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

HELP! Have not used c++ in too long

PyroXPyroX Member Posts: 1

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!
Sign In or Register to comment.