Re: {Spam?} writing binary files

larcky <[email protected]> Mon, 1 May 2017 11:04:24 -0700 (MST)
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Hi thanks for reply!
That example was perfect but also as you suggested...

int main()
{
    Stdio.File f = Stdio.File("foo.bin", "wct");
    array(int) arr = ({ 4, 5, 9, 12, 255, 0, 8 });
    *f->write( sprintf("%{%c%}", arr) );*
    f->close();
    return 0;
} 

Pike=awesome



--
View this message in context: http://pike.1058338.n5.nabble.com/writing-binary-files-tp5713245p5713247.html
Sent from the Pike - User mailing list archive at Nabble.com.