MQL5 to get file size - page 2

 
will try the  FILE_SHARE_READ | FILE_SHARE_WRITE later.
 
Paulf #:

fileHandle = FileOpen("signal.txt", FILE_READ | FILE_WRITE | FILE_ANSI | FILE_SHARE_READ | FILE_SHARE_WRITE);

Do you mean if i just add this then python and mql5 can read and write the file at the same time ?


Thanks

Do you really want a file to be read/write from both side ? Seem to me a bad idea, even if the sharing attributes can be set to do it.

And these attributes are only for the MQL side, you would have to check the Python side.

 
Alain Verleyen #:

Do you really want a file to be read/write from both side ? Seem to me a bad idea, even if the sharing attributes can be set to do it.

And these attributes are only for the MQL side, you would have to check the Python side.

thank you very much !

Reason: