Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Picking up all the files  RSS feed

 
Sachin Dere
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
How can u pick up all the files from a specific folder and process them? I dont know the name of those files and they could be around 30-40 files?
pls help me
thanks,
Sac
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java.io.File class has sever methods with names like listXXX(), which give you a list of files in various forms.

This most definitely isn't an advanced question, nor is it a general Java question. I'm going to move it to our I/O forum..

I'll also point out that you can answer a lot of questions like this by becoming familiar with the Java API documentation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!