Hi I am trying to read a file that contain a single line, something like this
where it is corresponds to year,month,day,hour,minute,second. So the part of my code that tries to read this, I seem to stuck on figuring how to assign it individual variable.
TString dir = gSystem->UnixPathName(__FILE__); dir.ReplaceAll("datemod.cc",""); dir.ReplaceAll("/./","/"); TTree *T = new TTree("ntuple","date from date.txt"); Long64_t date = T->ReadFile(Form("date.txt",dir.Data()),"year:month:day:hour:minute:second"); printf("%lld",date);
Any help is appreciated.