Open file outside MT4 while EA Writing on it

To add comments, please log in or register
Marco Strazzeri
92
Marco Strazzeri  

Is it possible to have access to a txt file while an EA is writing on it ( for example opening it with Notepad )?

Actually i'm using the FILE_WRITE flag in FileOpen function. Tried with "FILE_WHARE_WRITE" but returns 5008 error constantly

Demos Stogios
209
Demos Stogios  
Marco Strazzeri:

Is it possible to have access to a txt file while an EA is writing on it ( for example opening it with Notepad )?

Actually i'm using the FILE_WRITE flag in FileOpen function. Tried with "FILE_WHARE_WRITE" but returns 5008 error constantly

hi,

well, you have to put the following: FILE_READ|FILE_WRITE|FILE_SHARE_WRITE

Edit: sorry, it should be 

FILE_READ|FILE_SHARE_READ|FILE_WRITE|FILE_SHARE_WRITE

To add comments, please log in or register