Root file to text file

Hi All,

How might i write a root file to a text file ?

Thanks for your help
Cheers,
Ersel

Hi,

in general it’s not an advantage to migrate from an optimised binary format to a ASCII. In general it’s not even a well defined operation (You may have collections of collections of complex objects in your trees, assuming you want to transform trees into ASCII columns).
I think we do not provide anything out of the box. Pehaps the TTree::Scan method may be of help if not I am afraid custom code, not that difficult anyway, must be written.

D

1 Like

See also:

stackoverflow.com/questions/2897 … plain-text
root.cern.ch/root/roottalk/roottalk04/3108.html