|
Re: Deriving a new ifstream class
Why not create a separate read() function in your program that accepts the ifstream object pointer as input. The function can then read a line from the file, if it's a comment ignore it and get the next one, else return the read line.
|