# Code is not reading the data from .txt file

**URL:** <https://root-forum.cern.ch/t/code-is-not-reading-the-data-from-txt-file/52793>\
**Category:** Newbie\
**Created:** [December 16, 2022, 12:34pm UTC](https://root-forum.cern.ch/t/code-is-not-reading-the-data-from-txt-file/52793 "2022-12-16T12:34:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![syadav](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/syadav/32/33616_2.png) [@syadav](https://root-forum.cern.ch/u/syadav)\
**Post date:** [December 16, 2022, 12:34pm UTC](https://root-forum.cern.ch/t/code-is-not-reading-the-data-from-txt-file/52793/1 "2022-12-16T12:34:09Z")

</div>

My code is not reading the data from the txt file. I have given the correct path too still not reading.

---

<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:** [December 16, 2022, 1:50pm UTC](https://root-forum.cern.ch/t/code-is-not-reading-the-data-from-txt-file/52793/2 "2022-12-16T13:50:44Z")

</div>

Welcome to the ROOT forum

Can you provide the necessary code and data to reproduce the problem?
