Apr 21
It’s easy to convert a string to a byte array. For an ASCII string, use the Encoding.ASCII.GetBytes static method:
string s = "Test String"; byte[] byteArray = Encoding.ASCII.GetBytes( s );
It’s easy to convert a string to a byte array. For an ASCII string, use the Encoding.ASCII.GetBytes static method:
string s = "Test String"; byte[] byteArray = Encoding.ASCII.GetBytes( s );
Thanks for posting the source code! 🙂