End of file

Can somebody body give me an idea on how to detect end of file in excel
using ruby? I’m using ‘win32ole’ to open the file and write to it.
Thanks for your help.
parv.