[C#] 文件到16进制 →→→→→进入此内容的聊天室

来自 , 2020-04-12, 写在 C#, 查看 115 次.
URL http://www.code666.cn/view/a7789ef8
  1.         private string FileTo16X(string File)
  2.         {
  3.  
  4.             string tempStr;
  5.             FileStream fs = new FileStream(File, FileMode.Open);
  6.             int streamLength = (int)fs.Length;
  7.             byte[] BTFile = new byte[streamLength];
  8.             fs.Read(BTFile, 0, streamLength);
  9.             fs.Close();
  10.           tempStr=  byteToHexStr(BTFile);
  11.  
  12.  
  13.  
  14.             return tempStr;
  15.         }

回复 "文件到16进制"

这儿你可以回复上面这条便签

captcha