String in a ROOT file

How can I write a string in root file, and get it by the name, without knowing its content (TObjString doesn’t help)?

Thank you
Bruno

[/code]

Use a TNamed(name,title)

TNamed n("myname","mystring"); TFile f("junk.root","recreate"); n.Write();
Rene

Hi,
I save data from a simulation into a root file, I would also like to add formatted text, describing the simulation.
The text is about 20 lines, what is the appropriate way to do this?

Thank you!

The the text can be as long as you want in “mystring”.