Reading many files with successive numeration

Hi,

as the header says, I want to read many files (*.txt) in an easy way.

Has somebody an idea how can I do that?

Thanks,
Stephan

Your question is too vague to give a good answer.
Have a look at TNtuple::ReadFile or the TGraph constructor reading a file.

Rene

I have files like this:

1.txt
2.txt
.
.
.
.
n.txt

I would like to read those files within my macro in an easy way :slight_smile:.

I hope this helps you to help me :wink:

see examples in ROOT tutorials, eg
$ROOTSYS/tutorials/tree/basic.C, cernbuild.C

Rene