Write to stdout in any system
Jump to navigation
Jump to search
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.