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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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