FreeVBCode code snippet: A safe way to open files