2007

 
 

A workaround for sending binary data containing nulls to stdout in a console app built with REALbasic.

Watch that word wrap there.


and to write the contents of a memory block to stdout you call it like this:


Potential problems with this are that I’m assuming that the file handle for stdout will always be 1. There might be a way to get this via some other call, but so far it looks like this is not too dangerous of an assumption. And of course it’s up to you to check the return code and see that it wrote anything. In my quick testing here this gets me around the binary data limitation!


  James