How to use C language to visit root file?

Hello, every friend!
Here I wish to ask a question that how to use C language to visit root file.
I want to get the branches and entries from a root file with a C file outside.
Could you teach me, please?
:slight_smile:
:smiley:
Best wishes!!

[quote=“rootbird”]Hello, every friend!
Here I wish to ask a question that how to use C language to visit root file.
I want to get the branches and entries from a root file with a C file outside.
Could you teach me, please?
:slight_smile:
:smiley:
Best wishes!![/quote]

What is this “C file outside”? What kind of input it expects, what interfaces it provides? You know better how you pass the data from C++ (from ROOT’s trees) to your “C file outside”.
In general - C compiler is C compiler not C++, C programming language - is C programming language, not C++.

http://root.cern.ch/drupal/content/using-macro-read-ttree
http://root.cern.ch/root/HowtoReadTree.html
ftp://root.cern.ch/root/doc/12Trees.pdf

[quote=“W.J. Llope”]http://root.cern.ch/drupal/content/using-macro-read-ttree
http://root.cern.ch/root/HowtoReadTree.html
ftp://root.cern.ch/root/doc/12Trees.pdf[/quote]

So, all these examples demonstrate how to use ROOT’s classes in C (I repeat C, not C++) programming language?

Yikes! The OP’s question wasn’t entirely clear, so i posted some examples on how one can read trees. I’ll step back and let you take over from here! cheers