logging
I want to write a log method for my application. Should I open and close the logfile every time I want to write something to it? Or should I open it in the beginning, use a BufferedReader end close it when the application exits? Is it safer to open/close the file every time you write to it?
If the application terminates in a abnormal way, is the data lost if the file was still open?
Thanks,
Youngster

