MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  File functions  FileTell

 
int FileTell( int handle)
Returns the current position of the file pointer. To get the detailed error information, one has to call GetLastError() function.
Parameters:
handle   -   File handle returned by the FileOpen() function.
Sample:
  int handle;
  int pos;
  handle=FileOpen("my_table.dat", FILE_BIN|FILE_READ);
  // reading some data
  pos=FileTell(handle);
  Print("current position is ", pos);