Read a tag and cout the value?

Say I have a text file containing this:

[OPS] somestring;

The [OPS] is a tag, somestring is the text that needs to be printed on the console screen, and ; terminates the string and causes the console to endl. How do I do this via ifstream?
Last edited on
Topic archived. No new replies allowed.