943,498 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 7348
  • Java RSS
Jan 7th, 2005
0

to delete contents of a text file

Expand Post »
hi my project involves ping multiple comps simultaneously
to do that i am storing results of each comp in its designated text file
for that at startup i have to clear its contents i wanted to know how to do that in java???????
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
smartdetect is offline Offline
22 posts
since Aug 2004
Jan 7th, 2005
0

Re: to delete contents of a text file

File has a method to clear an existing file on opening (or rather a flag to the open() method if I'm not mistaken).
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: HTTP and Servlet : an interesting question.
Next Thread in Java Forum Timeline: Sorting arrays and then checking for duplicate characters





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC