Count attached files in macro

In root-6, how to list/count attached files?

Each file is getting consecutive number, _file0, _file1, _file2, and so on. How I can find number of these files and iterate over them?

gROOT->GetListOfFiles()->Print();

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.