I can't imagine that I/O wasn't one of the first things covered in whatever programming course you are taking but here is an example
Dim text() = {"line 1", "line 2", "line 3"}
Dim sw As New System.IO.StreamWriter("D:\output.txt")
For Each line As String In text
sw.WriteLine(line)
Next
sw.Close()