Imports System.IO
Module Module1
Sub Main()
' Read in the lines of a file.
For Each line As String In File.ReadAllLines(
"data.txt")
' The existing line.
Console.WriteLine(
"[{0}]", line)
' Trimmed line.
Dim trimmed As String = line.Trim()
Console.WriteLine(
"[{0}]", trimmed)
Next
End Sub
End Module
[ Something]
[Something]
[Example ]
[Example]
[ Another]
[Another]