TFile file size?

From: Reid D Rivenburgh (reid@c3serve.c3.lanl.gov)
Date: Fri Nov 14 1997 - 18:56:31 MET


Hi,

Does anyone have any suggestions as to how to determine the actual file
size of the regular unix file associated with a TFile?  I'm managing
a collection of TFiles, and I'd like to be able to determine if
one is getting near 2 gigabytes in size so that I can close it and
open a new one before writing a new object to it.  I tried using
TFile::GetBytesWritten(), but when my program exits, the final file
size is about 50% bigger than my cutoff threshold.  For example, when
GetBytesWritten determines that I've reached my testing cutoff of 10k in
size, I open a new TFile, do some things, and exit; when I look at the
first file, it's about 15k in size.  The same thing was happening with
a cutoff of 100k: the file wound up being 150k.  What is the extra 50%,
and can I always count on it?  (Probably not, but I thought I'd ask...)

Thanks,
Reid



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:22 MET