How can I convert a byte array to a string containing hex values of each byte in C#? For example, I want:<BR><pre class="ip-ubbcode-code-pre">byte[] powers = {1, 2, 4 ...
}</pre><BR>It reads the input string four characters at a time, converting it to an integer. It then converts this number to 3-digit hex number, and buffers it. At the end, it trims the leading zeros ...