Home arrow static arrow Java Programming [Archive] - File.delete() seems not to work
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - File.delete() seems not to work
This topic has 16 replies on 2 pages.    « Previous | 1 | 2 |

Posts:21,719
Registered: 98-02-20
Re: File.delete() seems not to work  
Jul 20, 2004 7:23 AM (reply 15 of 16)



 
The problem was solved.

* Yes, the file exists (now that that problem was
solved, it doesn't exist anymore :-) )
* Yes, "/" works just fine.
* Yes, I know the documentation.

But..... The file was already in use inside my app....

Thanks anyway.

So - what did you change to solve the problem?

%
 

Posts:40
Registered: 26/03/04
Re: File.delete() seems not to work  
Jul 20, 2004 2:19 PM (reply 16 of 16)



 
I just called close() on the Input and Output Streams that where using the file I wanted to delete before I delete the file (and not at the end of the method, like it was before).
 
This topic has 16 replies on 2 pages.    « Previous | 1 | 2 |