I want to convert string into ascii and storing it into byte array. I know the simplest way for this is
Encoding.ASCII.GestBytes
but what I want is
byte[] temp = new byte[];
temp = Encoding.ASCII.GestBytes("DEMO1");
Thus when I do
Console.WriteLine(temp[i])
it should print out 68 69 77 48 0 0 0 0 0 0 0 0 0 0 0 0 instead of 68 69 77 48
How can I achieve this?