# How to extract a data from dna.root file?

**URL:** <https://root-forum.cern.ch/t/how-to-extract-a-data-from-dna-root-file/16182>\
**Category:** ROOT\
**Created:** [June 3, 2013, 1:08pm UTC](https://root-forum.cern.ch/t/how-to-extract-a-data-from-dna-root-file/16182 "2013-06-03T13:08:06Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [February 27, 2017, 4:52pm UTC](https://root-forum.cern.ch/t/how-to-extract-a-data-from-dna-root-file/16182/9 "2017-02-27T16:52:39Z")

</div>

In ROOT 6, you need to:

```nohighlight
root [0] .> dump.txt
.x dump.cxx
.>
root [3] 

```

Note also that, in many simple cases, you should be able to use the operating system redirection, e.g.:

```bash
[...]$ root -l -q dump.cxx > dump.txt

```

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-extract-a-data-from-dna-root-file/16182)._
