File Directory ASP.Net Tutorial

<%@ Page Language="VB" %>


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim file As New System.IO.FileInfo(Server.MapPath("Data.txt"))
        Response.Write("Location: " & file.FullName)
        Response.Write("Size: " & file.Length)
        Response.Write("Created: " & file.CreationTime)
        Response.Write("Modified: " & file.LastWriteTime)
        Response.Write("Accessed: " & file.LastAccessTime)
        Response.Write("Attributes: " & file.Attributes)
    End Sub



    Untitled Page