MQL4 Reference
File functions
FileIsEnding
| 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);
}
|
|
|