Win a copy of Murach's Python Programming this week in the Jython/Python 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: 24215
37
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!