Not able to save plots generated from the macro

Hi all,

I am using the following macro to generate some plots. While I run this macro the plots appear in the terminal but they are not saved.
I want to save the plots in the directory that I have created, but I get the following error.

Can you help me with this?

Here is the macro:

mg25Yields.C (11.5 KB)

Here is the link to the root files which is inside the folder runs.

"mkdir -p Yields/..."

Getting this error now.

Try to replace all Form(...) calls with TString:Format(...) calls.