Feature Suggestion: Transparent handling of compressed text

Hi, I like using the TTree and TGraph methods for reading values directly from a csv text file. I am wondering if it is possible to add the functionality to allow these methods to transparently handle compressed text. It could just be one or a few common formats (zip, gzip, bz2), and it could be selected either by the file extension, option string argument, or auto-detected with magic numbers.

Python does this for the regular open() function, and it’d be nice if the same convenience was offered in ROOT.


Thanks for the suggestion. We will discuss it at the next meeting of developers.