# Usage of TFile Class

**URL:** <https://root-forum.cern.ch/t/usage-of-tfile-class/38453>\
**Category:** Newbie\
**Created:** [March 18, 2020, 11:37am UTC](https://root-forum.cern.ch/t/usage-of-tfile-class/38453 "2020-03-18T11:37:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![recaptcha19](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@recaptcha19](https://root-forum.cern.ch/u/recaptcha19)\
**Post date:** [March 18, 2020, 11:37am UTC](https://root-forum.cern.ch/t/usage-of-tfile-class/38453/1 "2020-03-18T11:37:45Z")

</div>

What is the difference between using TFile and TFile\* to perform input/output operations on files?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [March 18, 2020, 12:54pm UTC](https://root-forum.cern.ch/t/usage-of-tfile-class/38453/2 "2020-03-18T12:54:09Z")

</div>

Hi Rahul,  
_in first approximation_ there is no difference at the level of the ROOT framework. However, `TFile*` and `TFile` mean two different things at the C++ language level: the former represents a pointer to TFile, the latter…just a TFile. You can search the web for C++ questions and resources.

Cheers,  
Enrico
