What is the downside to this over ReadKeys?
Recreate the TFile object does everything you need (except you also need to delete the previous one) but also does more than you really need. In other word, doing multiple TFile::Open is simpler but a bit slower.
Cheers,
Philippe.