string to byte array

rickdiaz ricky_d at gmail.com
Tue Nov 4 16:08:49 PST 2008


how do i convert a string of chars to byte array

will this work: 

ubyte[] b;
char[] s="test";
b = cast(ubyte[]) s;

thx in advance


More information about the Digitalmars-d-learn mailing list