![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
everything works as it should ;-)
Yes, use the length of symbols in text as the third parameter, there is no bug.
In some sisuations,we need to create file with a fixed bytes,therefore we have to pass a fixed number for the third paremeter.
Yes, use the length of symbols in text as the third parameter, there is no bug.
In some sisuations,we need to create file with a fixed bytes,therefore we have to pass a fixed number for the third paremeter.
content must match the length or vise versa ;-)
content must match the length or vise versa ;-)
This is a work-around, but the built-in function 'FileWriteString' has an option to do it if the parameter is greater than the length of the string, it is poorly documented, and the result is a different from MQL4 to MQL5.
But... This work-around solves the problem (fixes the bug ;-)
It kills the bug ;D