who knows the different between FileFlush and FileIsEnding?

 
who knows the different between FileFlush and FileIsEnding?
 

FileFlush() writes any memory cached file data to it's file location on disk, stick, ...

Generally speaking for performance reasons, file I/O is only sent to the physical file location for a reason - that is not under your control unless you explicitly request that any memory cached data be sent to file location.


FileIsEnding() will tell you where the file pointer is set to in the file. This pointer can be moved around in relation to file contents. Generally it will point to the next file data position where fresh/appended data is written (EOF).

Given this knowledge: the where in this case is at End-Of-File (EOF) or somewhere before the EOF

If it says TRUE then means EOF condition

If it says FALSE then means file pointer set to somewhere before EOF

hth