StdOut.Write - VBScript
StdOut.Write
Write text to the console output.
Syntax
StdOut.Write(text)
Options/Flags
None
Examples
Simple
StdOut.Write("Hello, world!")
Complex
' Create a string buffer
Dim sb As New Scripting.StringBuilder
' Append multiple lines of text
sb.Append("Hello, world!")
sb.Append(vbCrLf) ' Add a newline character
sb.Append("This is a multi-line string.")
' Write the buffer to the console
StdOut.Write(sb.ToString())
Common Issues
Empty text output
Ensure that the text
parameter is not empty or Nothing
.
Integration
StdErr.WriteLine
Use StdOut.Write
for informational messages, while StdErr.WriteLine
is better for error messages.