Dump contents of a tree to an ASCII file

Hi,

Note that you can ‘almost’ get what you needed with maximum efficiency by doing:

########################################## 
# Read and dump the tree entries 
########################################## 
t.GetPlayer().SetScanRedirect(kTRUE) # You may have to cast t.GetPlayer() to a TTreePlayer*
t.GetPlayer().SetScanFileName("output.txt")
t.Scan("*")

Cheers,
Philippe.