string to hex convert

Seb seb at wilzba.ch
Thu Mar 29 21:49:39 UTC 2018


On Thursday, 29 March 2018 at 20:29:39 UTC, aerto wrote:
> how i can convert Hello world! to hex 48656c6c6f20776f726c6421 
> ??

---
import std.format, std.stdio;
void main()
{
     writeln("Hello World!".format!("%(%02X%)"));
}
---

https://run.dlang.io/is/acz7kV


More information about the Digitalmars-d-learn mailing list