Hey guys,

I have a config file which it's first few lines are # commented and I want to skip them and start "anazlying" or basically doing string parsing stuff on the rest of the file..

so I've opened the file and i did something like this:

fp is the filepointer, str is the string im getting each line with.

code
...
...
while (getline(fp, str)) {
if ( !str.find_first_of("#") ); {
cout << str << endl;
}
}

i basically want to do my parsing inside the if statement on everything but the commented lines, so i figured id look for them, and when i dont match them then ill be working on the non-commented lines.
but it doesnt work that way when i compile it, i just see the entire file printed out...

any ideas for a simple way of doing this?

thanks.