C++ How to abstract formatted text?
===

This might have appeared before, but I couldn't understand how to extracted formatted data. Below is my code to abstract all text between string "[1]" and "[2]" in a text file. 

void ExtractWebContent::filterContent(){

    char str[100];

    ifstream reading;
    reading.open("file_Currency.txt");
    while (!reading.eof()){
        reading >> "[1]" >> "[2]" >> str;
        
        cout << "Data between [1] and [2] is " << str <<endl; 
       // n+=1;
    }
    reading.close();
}


I will appreciate any suggestion to abstract currency data out from a text file. Thanks!