Invalid file reference is usually caused by referring to a field in the file definition before a successful read has been done. I notice in your code you refer to KEY1 and KEY2 prior to checking the status of the file read, if the read was not successful, I believe you would get the error...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.