Nothing in the API doc, and never seen any workaround yet.
Tried if open has a returning value that you could check: It doesn't
Code: Select all> =file.open("init.txt","r")
lua: stdin:1: cannot open file
> file.open("init.txt","r")
lua: stdin:1: cannot open file
>
Only method I see right now is to write a nasty procedure that executes the "file.open" command in a string, catch the return value, and check if this value.
Is a lua challenge, some background here:
http://www.lua.org/pil/8.4.htmlhttp://www.tutorialspoint.com/lua/lua_e ... ndling.htmIf you go on this slippery path, report back if you have any luck, I'm interested.