Advertisement
Java_Volume1 Files/ File Controls/ Input/ Output #90071

A FileExists Function

Checks to see if a file exists.

AI

Ringkasan 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.

Kode Sumber
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
Komentar Asli (3)
Dipulihkan dari Wayback Machine