Getting root files from a text file


I am trying to open a root file which is listed inside a text file - So, is there something like

TFile *input = TFile::Open(“file.txt”)

where file.txt has the path to the ROOT file I need to open?


Dear Alkass,

TFile::Open(…) can be used to open a generic file in RAW mode but not to do what you mention.

For that you need to extract the information by yourself and then call TFile::Open .

G. Ganis