Yes, I know. It was just short example.
It works when I use ls() or something like that, look the name and type it. But maybe exists another way?
Perhaps I can’t type the filename just put somehow it in a variable and already work with it further like:
char filename[100];
....
f.cd("file.root");
gDirectory->....Get_the_name_of_unknown_for_me_TDirectoryFile_in_this_rootfile_and_put_it_in_char?!