PDA

Click to See Complete Forum and Search --> : Check if a file exists?


rino_2
Jun 6th, 2000, 03:45 PM
Hi,

I would like to check if the file C:\Readme.txt exists. I know an API call is needed here because I once knew how to do it but I've now forgot. Could someone please help me? Thanks!

Fox
Jun 6th, 2000, 04:59 PM
API call? For such a thing? hm...

If Not Dir("C:\Readme.txt") = "" Then
'File exists
EndIf


;)

rino_2
Jun 7th, 2000, 01:14 AM
Thanks for the help Fox! I thought it was an API but I was wrong.