I am creating a file using DataOutputStream.This file is then opened in IE using - 'Runtime.getRuntime()'. I want to delete this file created on closing the Explorer. How can i do this ???
The Runtime method exec() returns a Process object. Process has a method waitFor() which returns when the external process ends. after waitFor() returns, you can delete your file.