Ad Code

Responsive Advertisement

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()

Post a Comment

0 Comments