Converting .root file to ascii file

Did you read the documentation? I clearly didn’t.

h3->Print("all");

TH1::Print