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

Directory Listing  RSS feed

 
Jeb Springfield
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help!!!

Been trying to work out how to obtain a listing of a directory for a while now. My javas pretty poor to say the least!!! Have looked at the java.io package and no thats where the solution is, i just can't translate it into code. I read another topic posted on this forum whcih mentions File.list, but i still can't work it out?? Can anyone show me the light??

Yours hopefully
Jeb
 
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
Hi Jeb,

Welcome to JavaRanch!



Run this with the path to a directory as the single argument.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!