hi i want to know how to get no.of files in a directory.
of course i use this code
int filecount=new File("images/ln/headings").listFiles().length;
to find the no.of files in the images/ln/headings directory. but i get always returns value 8 even the ./headings folder contains 10 or 20 files.
my doubt is this .class file is in app/WEB-INF/classes folder, but my targeted file is in app/images/ln/headings folder. so how can i use the above code to getting the file count in images/ln/headings folder..