Hi Anton,
See the following functions in TSystem (with concrete implementations
in TUnixSystem and TWinNTSystem:
see: http://root.cern.ch/root/htmldoc//TSystem.html
//---- Directories
virtual int MakeDirectory(const char *name); virtual void *OpenDirectory(const char *name); virtual void FreeDirectory(void *dirp); virtual const char *GetDirEntry(void *dirp); virtual void *GetDirPtr() const { return 0; }
To see an example of use, see class TSystemDirectory, eg http://root.cern.ch/root/htmldoc//src/TSystemDirectory.cxx.html#TSystemDirectory:GetListOfFiles
Rene Brun
On
Fri, 31 Mar 2006, Anton Korneev wrote:
> Hello, dear rooters :),
>
> My task is prepare a list of files in specified directory by macro for
> ROOT interpretator (CINT).
> Does the ROOT has some functions for searching of files? I mean
> something like findfirst() findnext() routines in <dir.h>, which
> standart for dos and windows?
> Can you help me?
>
> Thank you in advance.
>
>
Received on Fri Mar 31 2006 - 18:38:15 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET