Lasso Soft Inc. > Home

[ file_stderr ]

Method

The [file_stderr] method takes no parameters and returns a [file] object that can interact with the standard error I/O stream.

  • Syntax
var(error_out) = file_stderr
Examples
  • Intermediate

Convenience function to output to standard err

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!

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft