TDirectory mkdir, inside a loop

Hi, I would like to ask about the function mkdir, I would like to use it inside a loop, is there a way to use as an argument a string, and not the name of the folder?
TDirectory *ZZ = cr1->mkdir(“ZZ”);
I 've tried using
TString name =“ZZ”;
TDirectory *ZZ = cr1->mkdir(name.c_str()); but does not work

Thanks a lot!

TString name =“ZZ”;
TDirectory *ZZ = cr1->mkdir(name.Data());
1 Like

Thanks couet, that solved my issue!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.