Paras Ahuja wrote:1. Basically, I want to open the excel file when i click 'Open' but i don't want it to be saved on my system i.e. user can read it once he clicks Open. But when he closes the excel file, he has to again run the whole GUI to open the file, because it is NOT SAVED on system.
What you are using to show file MS-Excel ?
if yes than how can MS-Excel will open a file which is not present in the file system ?
Paras Ahuja wrote:
2.I'm not using any stream to read data from the any file. I create a new excel file in my program which can be saved,opened etc...
Are you making a excel file and showing in some editor like JTextEditor or JTextArea ?
Paras Ahuja wrote:
3. I'm just assuming here that when you deleted your file you did not open it first. If you did open it first to read it, let me know how did you delete the file?
Here if you specify any excel file then ms-excel will come in front and display your file and revise what i said you if the file is open in a process you cannot delete it , so now it wont be deleted, you need to make sure that the file is close and no application or process is using it then and only then the file will get deleted, hope now its clear if not ask me