# Reading Files in different directory

**URL:** <https://root-forum.cern.ch/t/reading-files-in-different-directory/34145>\
**Category:** Newbie\
**Created:** [May 19, 2019, 6:41am UTC](https://root-forum.cern.ch/t/reading-files-in-different-directory/34145 "2019-05-19T06:41:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogeshraj\_N](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/c6cbf5/32.png) [@Yogeshraj\_N](https://root-forum.cern.ch/u/Yogeshraj_N)\
**Post date:** [May 19, 2019, 6:41am UTC](https://root-forum.cern.ch/t/reading-files-in-different-directory/34145/1 "2019-05-19T06:41:15Z")

</div>

I use ROOT v5.34.38 in Ubuntu 16.04 I am also new to the Forums section.

By default, ROOT is only found to execute files that are stored in “macros” sub-directory in “root” main directory.

How can I access files in an another new directory, say “new” that was created by me in “root” main directory?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 19, 2019, 7:59am UTC](https://root-forum.cern.ch/t/reading-files-in-different-directory/34145/2 "2019-05-19T07:59:56Z")

</div>

You can modify the “Unix.\*.Root.MacroPath” in the “${ROOTSYS}/etc/system.rootrc” file.
