hello friends ...
i have some log data in buffer .. my target is when the program is exited ,the buffer data should go to file....how to do?
please can anyone say ..............
hello friends ...
i have some log data in buffer .. my target is when the program is exited ,the buffer data should go to file....how to do?
please can anyone say ..............
you of course need to save it before exiting, and you also need use APIs that can do teh saving. One possible one would be RFile.
If you mean writing a log when your application panics, that is not possible. If you mean a normal exit situation, you can get some idea from the very first answer of this joke: http://jeremy.zawodny.com/blog/archives/009023.html