Using FileExists()


Contents of default.asp :
<!--#include file ="../../jakes_IO.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="da">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Example use of the FileExists function</title>
    <link rel="stylesheet" type="text/css" href="/jake.css">
</head>
<body>
    <div align="center"><h1>Using FileExists()</h1></div>
    <br>
    <span class="sample">
    <!-- ***************    HERE IS WHERE IT HAPPENS!!     ****************** -->
    <!-- here the FileExists function is used to check for the existence of
    three different files -->
    <ul>
    <li>default.asp exists? <%=fileExists("default.asp")%>
    <li>index.html exists? <%=fileExists("index.html")%>
    <li>index.php exists? <%=fileExists("index.php")%>
    </ul>
    <!-- ********************************************************************** -->
    </span>
    
    <p><b>Contents of default.asp :</b><br>
    <span class="source">
    <% response.write(stringToHTML (GetFileContents("default.asp")))%>
    </span>

</body>
</html>