I am have tried unsuccessfully to remove or ignore lines that contain integers from an input file. This is what I am using to extract lines from the file. I have looked up the ignore() function but I don't think that will help me do this. Does anyone have any suggestions? Thanks.
The input file contains data like:
10
Who are you
5
I Know
15
Parliamentary
I am trying to get the string line to receive :
Who are you
I Know
Parliamentary
Code:
while (INFILE)
{
getline(INFILE, line) ;
...
...
}
10
Who are you
5
I Know
15
Parliamentary
I am trying to get the string line to receive :
Who are you
I Know
Parliamentary
Comment