The Artima Developer Community
Sponsored Link

Java Answers Forum
File & directory question

1 reply on 1 page. Most recent reply: May 28, 2003 4:51 AM by Rahul

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
shon

Posts: 42
Nickname: shon
Registered: Apr, 2003

File & directory question Posted: May 27, 2003 8:23 PM
Reply to this message Reply
Advertisement
if i were to create a directory name "DIR" how can i create using FILE

example ..
File f = new File();

How to create a directory with a name "DIR"

thanks For answering ...


Rahul

Posts: 52
Nickname: wildhorse
Registered: Oct, 2002

Re: File & directory question Posted: May 28, 2003 4:51 AM
Reply to this message Reply
Use mkdir() method of File class. It returns a boolean to denote whether directory was created or not.

Flat View: This topic has 1 reply on 1 page
Topic: boolean error Previous Topic   Next Topic Topic: Char to boolean error

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use