From: Stefan Scholl Date: 2003-11-27T00:17:11+09:00 Subject: Re: turning a string into array of ASCII bytes On 2003-11-26 14:39:45, David Garamond wrote: > What is the shortest, most straightforward way (without temporary > variables, etc)? Do you really need an array? You can access the ASCII codes of every character in a string with []. irb(main):001:0> a='David' => "David" irb(main):002:0> a[0] => 68 irb(main):003:0> a[1] => 97