Hi roorters,
I have found in the Root Search web page, a small macro to list the
directory files:
void *dirp = gSystem->OpenDirectory(directory);
const char *afile;
while(afile = gSystem->GetDirEntry(dirp)) {
printf("file: %s\n",afile);
}
My problem is that the showed list of files is not sorted
(equivalent Unix comand: "ls -f"), neither alphabetically nor
chronological order. How could I display the directory content in
alphabetical or chronogical order?.
Thank you in advance.
Regards: Raquel
--
" Si fuera por el espacio
el Universo me rodearía y se me tragaría como a un átomo;
pero por el pensamiento, yo abrazo al mundo. B. PASCAL"
************************************************************************
Raquel de los Reyes López PhD student
Dpto. Física Atómica, Molecular y Nuclear e-mail: reyes@gae.ucm.es
Universidad Complutense de Madrid (U.C.M.) Telf. +34-91-3944742
Avda. Complutense s/n 28040 Madrid (Spain) Fax: +34-91-3945193
************************************************************************
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET