The directory creation schemes are very confusing to me. I'm trying to create a subdirectory from the root directory (root as in top-level) and then another subdirectory underneath the former. The problem is that I always seem to be creating directories immediately under the root directory. Could someone please tell me how to do this correctly? TFile* f = new TFile("c:\\compression1.root","UPDATE","TestFile"); gDirectory->pwd(); f->mkdir("somefiles"); f->cd("somefiles"); f->mkdir("morefiles"); gDirectory->pwd(); f->cd("morefiles"); gDirectory->pwd(); Here's the output: c:\compression1.root:/ c:\compression1.root:/somefiles c:\compression1.root:/morefiles Thanks bunches! Brandon Kohn +377 97 97 41 50 ext. 306 (Work) +377 99 99 89 08 (Home) Monaco --No matter where you go, &this.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:59 MET