wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes Created File cannot be Deleted Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Created File cannot be Deleted" Watch "Created File cannot be Deleted" New topic
Author

Created File cannot be Deleted

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1394
If I use code to create a file the file cannot be deleted with code. There are no exceptions thrown. If I manually create the file if delets fine.

My create code:



My delete code:

Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Your delete code deletes the file and then recreates it.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Created File cannot be Deleted
 
Similar Threads
File Not Found Problem
Using a Configuration Setting
File Becomes Locked so App Cannot Make Changes to it
Strange File Behavior
File Process Fails but Generated No Exception