c# - Convert hexadecimal string to an integer -


  int मान = कन्वर्ट.ToInt32 ('o'); बाइट [] बी = नया बाइट [] {(बाइट) मान}; फ़ाइल। WritAllBytes (Default.ProjectsPath, b);  

जब मैं फ़ाइल खोलता हूं तो यह o प्रदर्शित करता है, मैं फ़ाइल को बाइट मान लिखना चाहता हूं?

< "post-text" itemprop = "text">

0x निकालें और फिर कनवर्ट करें:

  int i = Convert.ToInt32 ("0xFE" .Substring (2), 16);  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Algorithm negotiation fail SSH in Jenkins -

java - Messages from .properties file do not display UTF-8 characters -