// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <fstream>

using namespace std;

int main()
{
    ifstream f("pp.dat");
    bool flag = false;
    while(f && !f.eof())
    {
        string line;
        getline(f,line);
        if(line=="*") {
            flag = !flag;
        } else {
            if(flag) {
                cout << line << endl;
            }
        }
    }
    return 0;
}
