# Read a tfile while writing with another process

**URL:** <https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608>\
**Category:** ROOT\
**Created:** [December 12, 2014, 1:32pm UTC](https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608 "2014-12-12T13:32:32Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [January 28, 2015, 7:28pm UTC](https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608/9 "2015-01-28T19:28:53Z")

</div>

> What is the downside to this over ReadKeys?

Recreate the TFile object does everything you need (except you also need to delete the previous one) but also does more than you really need. In other word, doing multiple TFile::Open is simpler but a bit slower.

Cheers,  
Philippe.

---

_[View the full topic](https://root-forum.cern.ch/t/read-a-tfile-while-writing-with-another-process/18608)._
