Saveas Pdf to a Specific directory

Hello,
is there any way to save an histogram in pdf format to a specific directory ?
I am using
c-> SaveAs(“clust_hist.pdf”);
which saves the histogram to the current directory, but I want to save it in different directory.
can anyone guide me ?
thanks

c->SaveAs("/full/path/to/clust_hist.pdf");
1 Like

Hi,
Thank you for reply, it worked, :slight_smile:
but, is there a way to save the file to a variable directory?

TString::Format

1 Like