How Do I Know I've Reached the End of File (EOF) in a File I’m Editing with KM?

If you are using KM, you should not need to be concerned about End of File.
How are you trying to edit?
It is best to upload your macro so we can better understand what you are trying to do.

Please read:
Tip: How Do I Get The Best Answer in the Shortest Time?