' Collection of code snippets by Arne VajhÃ¸j 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System

Imports Microsoft.VisualBasic

Module Main
    Sub Main()
        Dim fildato As DateTime = FileDateTime("C:\snask.xml")
        Dim igaar As DateTime = DateTime.Now.AddDays(-1)
        Dim imorgen As DateTime = DateTime.Now.AddDays(1)
        If fildato < igaar Then
            Console.WriteLine("Gammel fil")
        End If
        If fildato < imorgen Then
            Console.WriteLine("Ægte fil")
        End If
    End Sub
End Module
