Imports System.GlobalizationModule Example Public Sub Main() Dim strm As New System.IO.StreamWriter(".\output.txt") Console.SetOut(strm) Console.WriteLine("asdf") strm.Close() End SubEnd Module