Advertisement
2_2002-2004 Files/ File Controls/ Input/ Output #117218

A FileExists Function

Checks to see if a file exists.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Private Function FileExists(FullFileName As String) As Boolean
On Error GoTo MakeF
	'If file does not exist, there will be an error
	Open FullFileName For Input As #1
	Close #1
	'no error, file exists
	FileExists = True
Exit Function
MakeF:
	'error, file does not exist
	FileExists = False
Exit Function
End Function
Original Comments (3)
Recovered from Wayback Machine