Hi Stelios, you can use gSystem->AccessPathName("pathtofilename"); be careful 'cause this methods returns 0 if found and 1 if not. But I just noticed that : Bool_t TSystem::AccessPathName(const char *, EAAccessMode) { // // return kFALSE } I didn't see this for version 3.03.09 only for version > 3.05 (for instance here 3.05.05) ... what did happen ?? seb On Fri, 11 Jul 2003, Stilianos Kesisoglou wrote: > Hi, > > Does anyone knows how to search for a file in the current working directory from a ROOT macro? > > Let's say my macro is named "macro.C" and when I run it on the prompt: > > prompt> root -l macro.C > > I want to be able to detect if a certain file let's say "macro.root" exists on the current working directory. > > How can I do that? > > Thanks! > > Stelios. >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET