Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating Sub-directories

 
Stuart Butler
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please tell me how to create new directories using Java or atleast point me in the right direction.
Thanks
Stuart
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd consult the API's. Possibly the File class in the java.io package. More specifically I'd look at the mkdir() method.
 
Stuart Butler
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doh! who'd have thought they would name it after the UNIX command. I was looking for a Create...() method.
Thanks
Stuart.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic