Imports System
Imports System.IO
Public Class MainClass
Shared Sub Main()
Dim fileName As String
fileName = "test.vb"
Console.WriteLine( fileName & " exists" )
' output when file or directory was created
Console.WriteLine("Created : " & File.GetCreationTime(fileName) )
' output when file or directory was last modified
Console.WriteLine("Last modified: " & _
File.GetLastWriteTime(fileName) )
' output when file or directory was last accessed
Console.WriteLine("Last accessed: " & _
File.GetLastAccessTime(fileName) )
End Sub ' Main
End Class
|