Function to extract file name from path

Dear Axel

Thank you for your correction. Meanwhile, I assume, too, that I have to allocate memory in this case.

I have tried to replace “TString names[ntrees]” with “TString *names = new TString[ntrees]”,
and with this change I had no longer the memory problems.
However, I like your solution better and will use it.

Best regards
Christian