C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着
1   string   to   byte  []
  string   str   =   "abcd"  ;  
  byte[]   bytes   =   System.Text.Encoding.ASCII.GetBytes(str);   
   -------------------------------------------------------------------------------------------------------------
 2   byte[]   to   string  
   
  byte[]   bytes   =   new   byte[255]   ;   
   string   str   =   System.Text.Encoding.ASCII.GetString(bytes,0,bytes.Length);  
posted on 2011-08-03 14:42  王德田  阅读(931)  评论(0编辑  收藏  举报