I hope this is going to be a simple one.
I would like to save a string, in whatever format is feasible (std::string, const char*, TString), in a TFile. It should contain the name of the config file I used to run my job whose results I save in that root file.
TFile *f = new TFile("data.root"); f->cd(); // The header I want to save TString headerFile("../configs/Config-default.xml"); f->Write(); // all other usual stuff: TTree, etc.. f->Close();
It is not working for me…
Any suggestion is welcome!