Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create a file inside a dir  RSS feed

 
C.T.Bala Murali
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Friends,

How to create a file inside a DIR( which is to be created if it is not exist)

Thanks in advance,
Balamurali
[ July 13, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Bala Murali.C.T",

There aren't may rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. In your case, you need to lose the ".C.T" as a suffix.

Thanks!
bear
Forum Bartender
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please be aware of which forum you are posting in. This forum is dedicated to the discussion of JDBC, which has nothing to do with your question.

I've moved your topic to the I/O forum for further discussion.
 
Abdulla Mamuwala
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check the following File API,

http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

look at the createNewFile() method for th same.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!