ASP File Exist Check

File Exist Check

<html>
<body>

<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")

If (fs.FileExists("c:\file.txt"))=true Then
      Response.Write("File exists.")
Else
      Response.Write("File does not exist.")
End If

set fs=nothing
%>

</body>
</html>