Visual Basic .NET Language Console.Write()


Dim x As Int32 = 128
Console.Write(x) ' Variable '
Console.Write(3) ' Integer '
Console.Write(3.14159) ' Floating-point number '
Console.Write("Hello, world") ' String '

The Console.Write() method is identical to the Console.WriteLine() method except that it prints the given argument(s) without a newline attached at the end. This method can be made functionally identical to WriteLine by adding a newline string to the end of any arguments provided:

Console.Write("this is the value" & Environment.NewLine)