Professional Documents
Culture Documents
Imports System.IO
This imports the Input / Output namespace, which allows us to read and write fi
les.Below that, add:
Module Module4
Sub main()
Dim path = "c:\Users\User\Desktop\Ejercicio.txt"
Dim sr As New StreamReader(path)
Dim line = sr.ReadToEnd()
While line IsNot Nothing
Console.WriteLine(line)
Exit While
End While
Console.ReadLine()