I have a doubt about the usage of a “config.in” file in my code, say that I want to run a process in n root files and I list them this way:
first_file.root
second_file.root
and then I want to open it in a root file (this way):
ifstream inFile;
inFile.open ("config.in", ios::in);
if (!inFile){
std::cerr << "Error: Can't open input file:" << std::endl;
exit(1);
}
but say I want to open the files and loop over them without opening each one this way:
input_filename = input_file->GetValue("input_filename", "file");
output_filename = input_file->GetValue("output_filename", "file");
or should I just put them in a .txt file and loop over that?
ROOT Version: 6.14.06
Platform: Ubuntu 18.04
Compiler: g++ 7.4.0