Re: String to binary conversation

2018-02-08 Thread Marc via Digitalmars-d-learn
On Monday, 5 February 2018 at 18:40:40 UTC, Steven Schveighoffer wrote: On 2/5/18 1:27 PM, Vino wrote: Hi All, Request your help on how to convert a string to binary,eg "test" to 01110100 01100101 01110011 01110100. import std.stdio, std.string; writefln("%(%b %)", "test".representation); -

Re: String to binary conversation

2018-02-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/5/18 1:40 PM, Steven Schveighoffer wrote: On 2/5/18 1:27 PM, Vino wrote: Hi All, Request your help on how to convert a string to binary,eg "test" to 01110100 01100101 01110011 01110100. import std.stdio, std.string; writefln("%(%b %)", "test".representation); For leading 0s: writefln

Re: String to binary conversation

2018-02-05 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/5/18 1:27 PM, Vino wrote: Hi All, Request your help on how to convert a string to binary,eg "test" to 01110100 01100101 01110011 01110100. import std.stdio, std.string; writefln("%(%b %)", "test".representation); -Steve

String to binary conversation

2018-02-05 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to convert a string to binary,eg "test" to 01110100 01100101 01110011 01110100. From, Vino.B