keep open the file written by the filewriter at execution
Hi,
I've written the text-file using FileWriter and BufferedWriter
It runs well, and the file is stored in the eclipse project directory
(the text file is editable through a notepad/wordpad)
I need to keep it opened after the program has run. Is it possible?
regards
dhilip
Re: keep open the file written by the filewriter at execution
Why? You always want to close it after you are done writing. leaving it open can give you unexpected results!
Re: keep open the file written by the filewriter at execution
I agree: maybe you should state what you want to do, you might have the wrong approach. ;)
And there is no way I know to do so...
Re: keep open the file written by the filewriter at execution
Quote:
Originally Posted by
noobplus
I need to keep it opened after the program has run. Is it possible?
It isn't possible; when a process terminates the OS closes all streams owned by the process (but doesn't flush their buffers if any).
kind regards,
Jos