Values of statistc box print out or write on file

Hi,
as a root_starter i would like to ask if somebody could help me.
I would like to write out
the values (Entries, Integral) written in the statistical box to a file or
on the screen as ascii ?
or how i can access to these values within my macro ?

thanks in advance

See the Getxxx functions in:
root.cern.ch/root/htmldoc/TH1.html
root.cern.ch/root/htmldoc/TH2.html
etc …