If I correctly understand, any file could be put into a .root file.
I have text file allin.c. What I’m doing:
[ul]TFile *f = new TFile(“AFile.root”,“RECREATE”);
fie = fopen(“allin.c”, “r” );
fie->Write();[/ul]
then error -
[ul]Error: non class,struct,union object fie used with . or -> (tmpfile):1:
*** Interpreter error recovered [/ul]
if I’m doing like this:
[ul]f->WriteTObject(fie);
Error: Can’t call TFile::WriteTObject(fie) in current scope (tmpfile):1:
Possible candidates are…
public: virtual Int_t TDirectory::WriteTObject(const TObject obj,const char name=0,Option_t option=);
*** Interpreter error recovered ***[/ul]
In advance I apologise if it’s too simple question, but I’m just a beginner.
THA.