Thank you for your comment. Now you can find correct English version of this utility in attached files.
If you forget to use flush, data loss may occur.
A better solution would be the following:
private: void flush(void); // Flushing cache into file
//+------------------------------------------------------------------+ //| Deinitialization | //+------------------------------------------------------------------+ void CLogger::deinit(void) { flush(); // Flush data FileClose(handleFile); // Close file }
So that the data save is automatically.
ps.: I'm sorry if I offended spelling, the google translator helped me...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
New article Finding Errors and Logging is published:
Author: Дмитрий Александрович