Validate_File
Determines if a file exists Improved version--detects hidden files too!
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.
ซอร์สโค้ด
Function Validate_File (ByVal FileName As String) As Integer
Dim fileFile As Integer
'attempt to open file
fileFile = FreeFile
On Error Resume Next
Open FileName For Input As fileFile
'check for error
If Err Then
Validate_File = False
Else
'file exists
'close file
Close fileFile
Validate_File = True
End If
End Function
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine