- samjesse: The docs says File must be opened with FILE_BIN flag, but I want to write text, so why mql4 not allowing it?Because the function you are trying to use is only for binary files. Just FileWrite it.
- samjesse: But when I do that, it gives error 5008.Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
whroeder1:
- Because the function you are trying to use is only for binary files. Just FileWrite it.
- Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
Thanks for the hint of using
if(FileWrite(fH ,spread) == 0){
instead of:
if(FileWriteDouble(fH ,spread) == 0){
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
Hi
This code needs to open/create a file to write in, so that the content of the file will ONLY have what is being written by this code.
GetLastError() is reporting 5011. Could some one please show why and how to fix it?
The docs says File must be opened with FILE_BIN flag, but I want to write text, so why mql4 not allowing it?
But when I do that, it gives error 5008.
Thanks