amando:
Are you running Hello,
i have problems with file close,
I read a file, and close it after
that works normally perfekt, but sometimes I get an error Messages 5001, not more than 4 file can be open.
Is there a way, to check, which files are open?
The main problem, FileClose is a void with no return value, normally I will check, if the closing was ok, but in a void I can't do it.
can it work with a safety closing before end of my function?
FileLesen()
in a speedy loop? or from several indicators/EAs at the same time?
If so, you can consider using the flag FILE_SHARE_READ ...
;)
![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
Hello,
i have problems with file close,
I read a file, and close it after
that works normally perfekt, but sometimes I get an error Messages 5001, not more than 64 file can be open.
Is there a way, to check, which files are open?
The main problem, FileClose is a void with no return value, normally I will check, if the closing was ok, but in a void I can't do it.
can it work with a safety closing before end of my function?
FileFindClose(file_handle);