• Post Reply Bookmark Topic Watch Topic
  • New Topic

Remove file

 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am using Struts Upload api to upload a file to the server,that is working fine.But i need to delete that file from the application itself,what can i do for that? Is there any api for that..

Please help me on this..

Thanks in advance
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.io.File myFile = new java.io.File("c:\myFile");
myFile.delete();
 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..

One more thing... once i uploaded the file,if it is there in the specific folder i have to get some value(boolean/String) in my code.How can i get this.

Thanks...
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinod,

I'm afraid I don't understand your question. Could you explain in greater detail what it is you're trying to do?
 
get schwifty. tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!