Promote Your Blog
Google

Monday, January 23, 2012

How To Write To A File In Visual Basic

Imports System.IO

Dim ValueOfVariable As String = "Hello, World!"

Dim streamOut As New StreamWriter("filename.extension")

streamOut.WriteLine("Your First Line Hard-Coded")

streamOut.WriteLine(ValueOfVariable)

streamOut.Close()

No comments:

Post a Comment