# How can I access a tree with a whitespace in the name?

**URL:** <https://root-forum.cern.ch/t/how-can-i-access-a-tree-with-a-whitespace-in-the-name/51185>\
**Category:** ROOT\
**Created:** [August 14, 2022, 3:57pm UTC](https://root-forum.cern.ch/t/how-can-i-access-a-tree-with-a-whitespace-in-the-name/51185 "2022-08-14T15:57:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 14, 2022, 7:31pm UTC](https://root-forum.cern.ch/t/how-can-i-access-a-tree-with-a-whitespace-in-the-name/51185/2 "2022-08-14T19:31:31Z")

</div>

```cpp
TTree *t;
gFile->GetObject("Tree 1", t); // or your_file->GetObject(...)
t->Scan("*");

```

Bonus answer: See: [Aux;1 aux;2 aux3;](https://root-forum.cern.ch/t/aux-1-aux-2-aux3/13345)

---

_[View the full topic](https://root-forum.cern.ch/t/how-can-i-access-a-tree-with-a-whitespace-in-the-name/51185)._
