I am trying to give a root macro an argument of an ascii file. This filename will be used later to run some external commands using gSystem->Exec() and to create some histograms. How can I do that?
I found a way, but there are some issues. i could use TString::Format(. However when I do it I get the following warnings
[quote]warning: cannot pass objects of non-POD type ‘class TString’ through ‘...’
/afs/cern.ch/user/a/astamato/private/NTUA/234U/MCNP/./mcnp2root.C:16: warning: format ‘%s’ expects type ‘char*’, but argument 3 has type ‘TString*’[/quote]