Values of statistc box print out or write on file

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:
etc …