How to Read Data Fast from txt file



is there any way how to read data fast in milliseconds?

When I changed txt file, this take random 1-3 second, maybe more time.

I have tried OnTimer with millisecond but not working.

Is there any solution, how to read fast one data from one to another MT.

I need read only one number.


Reading is not the problem. Your polling is. You have no idea when the data changes. Send a message to the other.
          Socket library for MT4 and MT5 - Other - 6 September 2017 - Traders' Blogs

Did you bother to read the limitations of the timer?

timer events are generated no more than 1 time in 10-16 milliseconds due to hardware limitations.