Redirect console to a file
Imports System.Globalization Module Example Public Sub Main() Dim strm As New System.IO.StreamWriter(".\output.txt") Console.SetOut(strm) Console.WriteLine("asdf") strm.Close() End Sub End Module