Salve a tuttiiii!!!!
il mio problemino è qst:
devo cercare nel drive c: tutte le dir!!
come posso fare???
grzieee
Salve a tuttiiii!!!!
il mio problemino è qst:
devo cercare nel drive c: tutte le dir!!
come posso fare???
grzieee
utilizza il metodo list della classe File:
public String[] list()
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname. If this abstract pathname does not denote a directory, then this method returns null. Otherwise an array of strings is returned, one for each file or directory in the directory.
23-08-2005: Udinese in cémpions lìg
Questa estate l'ho passata a Tallin
File root = new File("C:\\");
String[] dirs = root.list();
for (int i=0; i<dirs.length; i++)
if (new File(dirs[i].isDirectory())
// qui il cod per la directory
grazie millleeeee!!!
Appena ho tempo lli provoo!!!