Hey all,
I want to create a function that clears out a folder ready for other use. So I've been playing around with a small app. First off I managed to get it to delete files in it's own folder no problem (including itself). However, once I tried to get it to delete files in other folders I hit all sorts of problems. It seems from googling that java has problems with using relative file names (i.e. asking to delete "/Reports/hello.t" won't work) so I started to change the working directory using setProperty(). However it is now just failing to delete the files.
The code I'm using is inside
( Read more...Collapse )There are lots of System.out.printlns - just to help me try and work out why it isn't working
Any help would be greatfully recieved
Alistair
Edit: All solved now, thanks :)