• Post Reply Bookmark Topic Watch Topic
  • New Topic

Delete Files  RSS feed

 
Ann Maria
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody please tell me how to delete files using Java and edit files using Java?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To delete a filem "new java.io.File(filename).delete()" will work. But to "edit" a file in Java, you'd have to explain what you mean, exactly. How to change a file from a program? How to write an editor program?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!