string 与 Byte[]数组的转换
◎1:需要将不定长字符串string转换成Btye型数组,该如何转换?
string strMsg;
Byte[] bytArr;
strMsg=Console.ReadLine(); //strMsg!=“”
??strMsg=>bytArr
◎2:可否有简单的方法将不同长度的Byte[]数组合并合并为一个较长数组
Byte[] bytArr1=new Byte[3];
Byte[] bytArr2=new Byte[10];
??Byte[] BytTol<=bytArr1+bytArr2
希望能获取高手帮助!!