The Artima Developer Community
Sponsored Link

Java Answers Forum
make new empty file?

1 reply on 1 page. Most recent reply: Mar 23, 2002 10:41 AM by Kishori Sharan

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
anonymous

Posts: 1
Nickname: cure
Registered: Mar, 2002

make new empty file? Posted: Mar 23, 2002 5:22 AM
Reply to this message Reply
Advertisement
hi
how can make a new file with java?
( using object File i can delete, rename .. but i need a new virgin file that doesn't exist so far *uhm )
plz help


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: make new empty file? Posted: Mar 23, 2002 10:41 AM
Reply to this message Reply
You also have a method createNewFile() for java.io.File class. Call this method on your File object to create a new file..

Thanks
Kishori

Flat View: This topic has 1 reply on 1 page
Topic: Newbie Print question Previous Topic   Next Topic Topic: Array cell count

Sponsored Links



Google
  Web Artima.com   

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