MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  File functions  FileReadDouble

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
double FileReadDouble( int handle, int size=DOUBLE_VALUE)
Reads the double-precision number with floating point from the current binary file position. The number format size can be 8 bytes (double) or 4 bytes (float).
To get the error information, one has to call the GetLastError() function.
Parameters:
handle   -   File handle returned by the FileOpen() function.
size   -   Number format size. Can be DOUBLE_VALUE(8 bytes) or FLOAT_VALUE(4 bytes).
Sample:
  int handle;
  double value;
  handle=FileOpen("mydata.dat",FILE_BIN);
  if(handle>0)
    {
     value=FileReadDouble(handle,DOUBLE_VALUE);
     FileClose(handle);
    }