Advertisement
7_2009-2012 Files/ File Controls/ Input/ Output #222913

A FileExists Function

Checks to see if a file exists.

AI

Podsumowanie AI: 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.

Kod źródłowy
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
Oryginalne komentarze (3)
Odzyskane z Wayback Machine