Hi,
I want to remove the .root extension from a file name. I’ve looked at TString.Remove but I’m not sure how to use this.
Any help would be appreciated.
Lisa
Hi,
I want to remove the .root extension from a file name. I’ve looked at TString.Remove but I’m not sure how to use this.
Any help would be appreciated.
Lisa
[code]{
TString fname1(“hsimple1.root”);
fname1.ReplaceAll(".root", “”);
Printf("%s", fname1.Data());
TString fname2(“hsimple2.root”);
fname2.Remove(fname2.Index(".root"));
Printf("%s", fname2.Data());
}[/code]Jan