Opening same text file with EA across multiple pair

 
My EA reads from a text file.
I attached my EA to 8 charts and when loading the MT5 I have some error opening the text file.

I used random sleep to mitigate the opening of file in my on init

Is there a better way?
 
See OoenFile FLAGS here:
https://www.mql5.com/en/docs/files/fileopen

You can open file SHARE_READ.

To use SHARE_WRITE, make sure you write file in correct order.

Good luck.
 
Soewono Effendi #:
See OoenFile FLAGS here:
https://www.mql5.com/en/docs/files/fileopen

You can open file SHARE_READ.

To use SHARE_WRITE, make sure you write file in correct order.

Good luck.
Thanks. This is very helpful.
Reason: