Error with hadd

Hello,

I’m attempting to hadd 819 files that are listed in a txt file called v2.txt.

Upon using hadd forest.root @v2.txt, I get the following error,

hadd Source file 820:
Error in TFile::Open: no url specified
Error in TFileMerger::AddFile: cannot open file

There is no file 820 so I am confused. Why is root looking for a file that is not specified in v2.txt? Thanks.

-Michael

I guess we would need some example reproducing the problem to help you further.

Maybe you have an empty line at the end of your v2.txt file. If so, try to remove it.