Check Read-only Files

I would like my macro to check if the open read only file has been updated since it was opened before doing other things. I am using ReloadOrReplace right now which is working but it always reloads the files, whether it needs to or not. Is there a way to check if read only files have been updated 1st?

Thanks,

David

SolidworksApi macros