The process cannot access the file because it is being used by another process.
This is the message I get from Window 10 when I try to open a file by double clicking its name in Windows Explorer after this mql5 code opened and closed the same file.
Since the code needs to run on many charts, it works the first time but failed to open the file the second time due to the the file process issue above.
Any suggestion as to what I need to do?
Thanks
Your code doesn't close the file.
FileClose() function expects file handle, not file name.
The process cannot access the file because it is being used by another process.
This is the message I get from Window 10 when I try to open a file by double clicking its name in Windows Explorer after this mql5 code opened and closed the same file.
Since the code needs to run on many charts, it works the first time but failed to open the file the second time due to the the file process issue above.
Any suggestion as to what I need to do?
Thanks
You can also use FILE_SHARE_READ|FILE_READ and you will not have to close the file in any of the charts
greets
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
The process cannot access the file because it is being used by another process.
This is the message I get from Window 10 when I try to open a file by double clicking its name in Windows Explorer after this mql5 code opened and closed the same file.
Since the code needs to run on many charts, it works the first time but failed to open the file the second time due to the the file process issue above.
Any suggestion as to what I need to do?
Thanks