A Function To Determine Whether A File Exists

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5, Visual Basic.NET

More information:
This is a small, easy to use function, only 3 lines, that returns true if a given file exists. Includes an optional argument for special file attributes. This can be used with any file type.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: