Results 1 to 7 of 7
Thread: how to remove contents in a file
- 02-15-2011, 01:50 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 22
- Rep Power
- 0
- 02-15-2011, 01:51 PM #2
- 02-15-2011, 01:51 PM #3
You can just overwrite the file with a blank one!
- 02-15-2011, 01:57 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,392
- Blog Entries
- 7
- Rep Power
- 17
- 02-15-2011, 01:58 PM #5
I guess thats what I meant :DOr you can simply open the file for writing and close it immediately afterwards.
- 02-16-2011, 07:24 AM #6
JosAH's suggestion seems too efficient.
Mak
(Living @ Virtual World)
- 02-16-2011, 07:31 AM #7
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,392
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
remove element contents
By oliveira in forum XMLReplies: 5Last Post: 12-07-2010, 08:44 AM -
Reading and Writing the contents of a file to another file
By priyankatxs in forum New To JavaReplies: 9Last Post: 10-20-2009, 10:52 AM -
Read file from directory, update contents of the each file
By svpriyan in forum New To JavaReplies: 2Last Post: 05-11-2009, 10:07 AM -
swapping the contents of the file and writing to another file
By Ms.Ranjan in forum New To JavaReplies: 9Last Post: 07-10-2008, 04:52 PM -
Concatenation file contents
By Java Tip in forum Java TipReplies: 1Last Post: 02-07-2008, 01:29 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks