Imports System.IO
public class Test
public Shared Sub Main
Dim objSW As StreamWriter
Dim objFS As FileStream
objFS = New FileStream("test.txt", FileMode.Create)
objSW = New StreamWriter(objFS)
objSW.Write("asdf")
objSW.Close()
objFS.Close()
End Sub
End class