# Appending to file opened in UPDATE mode corrupts file

**URL:** <https://root-forum.cern.ch/t/appending-to-file-opened-in-update-mode-corrupts-file/56801>\
**Category:** ROOT\
**Tags:** root\
**Created:** [October 21, 2023, 11:52am UTC](https://root-forum.cern.ch/t/appending-to-file-opened-in-update-mode-corrupts-file/56801 "2023-10-21T11:52:14Z")\
**Posts on this page:** 1\
**Showing post:** 17

<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:** [October 23, 2023, 10:04pm UTC](https://root-forum.cern.ch/t/appending-to-file-opened-in-update-mode-corrupts-file/56801/17 "2023-10-23T22:04:37Z")

</div>

Then this must be an issue in the Geant4 re-implementation of ROOT I/O. This sounds like the same as here: [Opening a file in update mode causes Error in \<TBasket::Streamer\>: The value of fNbytes is incorrect - #15 by pcanal](https://root-forum.cern.ch/t/opening-a-file-in-update-mode-causes-error-in-tbasket-streamer-the-value-of-fnbytes-is-incorrect/43340/15)

---

_[View the full topic](https://root-forum.cern.ch/t/appending-to-file-opened-in-update-mode-corrupts-file/56801)._
