Hi Brandon, For convenience in the general case, the parameter to TFile's constructor is passed to TSystem::ExpandPathName. In particular this means that when using 'meta-character' like '[' directly, you need to escape them. Hence: new TFile("myfile\[1\].root"); should work in your case. Cheers, Philippe -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Brandon Kohn Sent: Wednesday, November 12, 2003 2:53 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] Invalid characters in TFile name Hello rooters, I've noticed that the version of the system call 'open' used in TFile (win32 version of root 3.03) does not accept the full set of characters which are valid on the OS. Among that characters that aren't allowed are [ and ] (so filename myfile[1].root) is not allowed. However, there is nother inherently wrong with this filename (windows allows it for all other files). Is there anyway around this? Brandon
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET