# How to open a root file

**URL:** <https://root-forum.cern.ch/t/how-to-open-a-root-file/39727>\
**Category:** Newbie\
**Created:** [June 2, 2020, 1:14pm UTC](https://root-forum.cern.ch/t/how-to-open-a-root-file/39727 "2020-06-02T13:14:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![esh187](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/esh187/32/24961_2.png) [@esh187](https://root-forum.cern.ch/u/esh187)\
**Post date:** [June 2, 2020, 1:14pm UTC](https://root-forum.cern.ch/t/how-to-open-a-root-file/39727/1 "2020-06-02T13:14:27Z")

</div>

I have a root file but I cannot seem to read it and draw histograms using the data in it.

* * *

_ROOT Version:_ ROOT 6  
_Platform:_ WINDOWS

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [June 2, 2020, 2:22pm UTC](https://root-forum.cern.ch/t/how-to-open-a-root-file/39727/2 "2020-06-02T14:22:43Z")

</div>

Hi,

What kind of data does your ROOT file contain?

Is it histograms or rather columnar data (ntuple, tree)?

You can find information about basic ROOT I/O in this course:

> **[2019 ROOT Summer Student Course](https://docs.google.com/presentation/d/1nNFRdh483KSYnoaA6q7x0nVeDPbhY7gjWyaGmr0ZdTA/edit?usp=sharing)**
>
> ROOT Summer Student Course S. Hageboeck, E. Tejedor for the ROOT Team

Look for “Reading and writing data” and “The ROOT columnar format”.

I can point you to more information once I know about what exactly you need to do.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 3, 2020, 6:04am UTC](https://root-forum.cern.ch/t/how-to-open-a-root-file/39727/3 "2020-06-03T06:04:43Z")

</div>

> [@esh187](#):
>
> I have a root file but I cannot seem to read it and draw histograms using the data in it.

If your ROOT file is not too big you can post it here or give a link to download place you can put it on.
