Advertisement
ASP_Volume3 Files/ File Controls/ Input/ Output #50062

A FileExists Function

Checks to see if a file exists.

AI

สรุปโดย 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.

ซอร์สโค้ด
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
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine