字符串与byte数组转换
string weclome="";
byte[] data = new byte[1024];
//字符串转byte数组
data = Encoding.ASCII.GetBytes(welcome);
//byte[]数组转ASCII字符串
weclome=Encoding.ASCII.GetString(data, 0, data.length)
所有问题都会有一定程度的抽象和假设
string weclome="";
byte[] data = new byte[1024];
//字符串转byte数组
data = Encoding.ASCII.GetBytes(welcome);
//byte[]数组转ASCII字符串
weclome=Encoding.ASCII.GetString(data, 0, data.length)