The [file_stderr] method takes no parameters and returns a [file] object that can interact with the standard error I/O stream.
var(error_out) = file_stderr
The code below adapts the code for the [stdout]
method to create a similar method for writing to the standard error I/O stream.
Code
define stderr(s::string) => {
file_stderr->writeBytes(#s->asBytes)
}
stderr('Rumbling Rhino!')
Result
Rumbling Rhino!
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments