i cant find any method to do that..how should i do it? i can only find one to put it as char array!
Printable View
i cant find any method to do that..how should i do it? i can only find one to put it as char array!
isn't a byte array an array of 1's and 0's?
why would you want to out a string in that?
You can serialize it.
Code:string s = "Hello World";
byte[] b = System.Text.UnicodeEncoding.Unicode.GetBytes(s);
yeah..that was what i was looking forQuote:
Originally posted by Lethal
Code:string s = "Hello World";
byte[] b = System.Text.UnicodeEncoding.Unicode.GetBytes(s);