to delete contents of a text file

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2004
Posts: 22
Reputation: smartdetect is an unknown quantity at this point 
Solved Threads: 0
smartdetect smartdetect is offline Offline
Newbie Poster

to delete contents of a text file

 
0
  #1
Jan 7th, 2005
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???????
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: to delete contents of a text file

 
0
  #2
Jan 7th, 2005
File has a method to clear an existing file on opening (or rather a flag to the open() method if I'm not mistaken).
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC