MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  File functions  FileIsEnding

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
bool FileIsEnding( int handle)
Returns logical true if file pointer is at the end of the file, otherwise returns false. To get the detailed error information, call GetLastError() function. If the file end is reached during reading, the GetLastError() function will return error ERR_END_OF_FILE (4099).
Parameters:
handle   -   File handle, returned by FileOpen() functions.
Sample:
  if(FileIsEnding(h1))
    {
     FileClose(h1);
     return(false);
    }