Reading by character and by line from stdin

Joel Christensen joelcnz at gmail.com
Thu Aug 25 21:12:33 PDT 2011


On 26-Aug-11 10:20 AM, Timon Gehr wrote:
> On 08/26/2011 12:19 AM, Timon Gehr wrote:
>> On 08/25/2011 11:34 PM, bellinom wrote:
> whoops, this is better:
>
> auto arr=to!(int[])(split(strip!(readln())));
>

Or,
auto arr2=to!(int[])( readln.strip.split );

Got rid of the second ! too (does not work with it). I not sure about 
having no () for 3 of the functions though.

- Joel


More information about the Digitalmars-d-learn mailing list