Public Class Tester
Public Shared Sub Main
Dim fileDetail As IO.FileInfo
fileDetail = My.Computer.FileSystem.GetFileInfo("test.txt")
Console.WriteLine("Created: " & fileDetail.CreationTime)
Console.WriteLine("Accessed: " & fileDetail.LastAccessTime)
Console.WriteLine("Modified: " & fileDetail.LastWriteTime)
End Sub
End Class
Created: 11/05/2007 9:20:09 PM
Accessed: 11/05/2007 9:26:39 PM
Modified: 11/05/2007 9:26:04 PM