My problem is a part of my actual program,but it is not all of it.it may seem simple to expert users of java.The problem is to access a folder,count number of files in it,determine their sizes and store their names in an array,and it 'll be good to determine also the types of them.I need to know the suitable method and some tips that may help in the program.By the way,the problem is a part of a search based program.If anyone knows the answer,I hope to send me the answer as soon as he could.Thanks a lot .

Member Avatar for iamthwee

I'm sure java has a file handling class. Have you googled anything.

If not you can cut to the chase and use api for your specific operating system, although I assume you're using windows.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.