Hi Sasha,
The file title was correctly written to the file, but was not read in
when the file was connected again.
I have implemented the necessary fix in TFile::Init in my development
version.
Thanks for reporting this omission.
Rene Brun
Sasha Vanyashin wrote:
>
> Hi everybody,
>
> I need to save the TFile title in the empty root file. I tried:
>
> root.exe [0] TFile f = TFile("dummy.root","NEW","This file is empty");
> root.exe [1] f.GetTitle()
> (char* 0x86c9b04)"This file is empty"
> root.exe [2] f.Flush()
> root.exe [3] f.Write()
> root.exe [4] f.Close()
> root.exe [5] TFile *d = TFile::Open("dummy.root");
> root.exe [6] d->GetTitle()
> (char* 0x4031cef0)""
> root.exe [7] .q
>
> This is the end of ROOT -- Goodbye
>
> How to save the empty TFile title?
>
> Regards,
> Sasha
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET