# Send histogram saved in a root file to friend

**URL:** <https://root-forum.cern.ch/t/send-histogram-saved-in-a-root-file-to-friend/38521>\
**Category:** Newbie\
**Created:** [March 22, 2020, 11:15am UTC](https://root-forum.cern.ch/t/send-histogram-saved-in-a-root-file-to-friend/38521 "2020-03-22T11:15:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abcd](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@abcd](https://root-forum.cern.ch/u/abcd)\
**Post date:** [March 22, 2020, 11:15am UTC](https://root-forum.cern.ch/t/send-histogram-saved-in-a-root-file-to-friend/38521/1 "2020-03-22T11:15:10Z")

</div>

Hi all, I have generated some histograms, which are stored in a root file. How can I save these histograms such that I can send them to a friend, so that he can use them in his code (i.e. without needing the data that was used to generate the histograms, and without the code which generated the histograms)? Thanks

---

<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:** [March 22, 2020, 11:19am UTC](https://root-forum.cern.ch/t/send-histogram-saved-in-a-root-file-to-friend/38521/2 "2020-03-22T11:19:08Z")

</div>

[ROOT Primer -\> File I/O and Parallel Analysis -\> Storing ROOT Objects](https://root.cern.ch/root/htmldoc/guides/primer/ROOTPrimer.html#file-io-and-parallel-analysis)  
[ROOT User’s Guide -\> Histograms -\> Saving/Reading Histograms to/from a File](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#savingreading-histograms-tofrom-a-file)
