saving empty TFile title

From: Sasha Vanyashin (vanyashi@rcf.rhic.bnl.gov)
Date: Tue Mar 21 2000 - 02:25:48 MET


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