Write to stdout in any system: Difference between revisions

From Cuis CookBook
Jump to navigation Jump to search
(imported material)
 
(No difference)

Latest revision as of 20:23, 4 May 2025

Problem. We are developing a shell script but we are not in a Unix like system, suppose we are in Windows. How do we write to the console?

Solution. Get the equivalent of stdout and write into it as

stdout _ StdIOWriteStream stdout.  
stdout nextPutAll: 'Hello World' ; newLine.