i get the histogram as ascii by hist->Print(“all”), but how it is possible to save only the x value and y value as 2 columns , rejecting the fsumw word,
in a data file from command prompt. please help. what are the other options in Print("").

Example for a TH1 *h with 100 bins

for (int i=1;i<100;i++) printf("%g %g\n",h->GetBinCenter(i),h->GetBinContent(i)); >x.dat