• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue in Deleting File in Java  RSS feed

 
heart robber
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to delete a file with name abc+def.txt
in java using file.delete(). But when i check that whether the given name file exist or not using f.exists() it always return false.
The reason of this is due to the '+' sign in file name. When i remove +sign from file name then it works properly. But i need help to delete already existing file in such format.

Anybody help for this.....
 
David Coons
Greenhorn
Posts: 6
Chrome Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seeing your actual code would help, but this works for me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!