This document discusses how the Console.ReadLine() method in Visual Basic collects user input from the console. It presents sample code that prompts the user to enter their name, stores their input in a variable, and then writes their name back to display "Hello" followed by their name. The name presented will depend on what the user enters in response to the prompt.
2. Using ReadLine()
Module Module1
ReadLine()
collects the users
Sub Main()
response from
the console
Dim name As String
name = "Dave"
Console.WriteLine("What is your name?")
name = Console.ReadLine()
Console.WriteLine("hello " & name & " !")
Console.ReadLine()
What name is
End Sub
presented will
End Module
depend on
what name is
entered