This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getdirectories ???

 
R Ludington
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get getdirectories to work but am getting an error with the following test code:
String working_dir = "C:\\javacode\\";

String[] directories = Directory.GetDirectories(working_dir);
About unable to resolve Directory

Have I forgottn to import something ???
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't import Directory. There's no such thing in the Java API. Perhaps you wanted java.io.File.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!