Stream File VB.Net Tutorial

Public Class Tester
    Public Shared Sub Main
    
        Dim fileDetail As IO.FileInfo
        fileDetail = My.Computer.FileSystem.GetFileInfo("test.txt")
        Console.WriteLine("Size: " & fileDetail.Length & " byte(s)")
    End Sub
End Class
Size: 343984 byte(s)