I'm trying to delete a file, but it wont be deleted. If I run it as "gui", it's ok while when I run it with command line (String[] args) the file cannot be deleted. When I debug it, the file can be removed, and when I run the program the file is not deleted..why?
When I run it as a "gui" everything is fine, but my problem happens when I run it with "String[] args".
This is the part that not working:
fis.close();
File file = new File((Target_Folder_Name + "\\" + Target_Filename + ".txt"));
file.delete();