Un-tested, may not want the "=" in the if.
Code:
if(file_seek(file_handle,0,4)>=file_length(file_handle))    printf("EOF reached");



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial