basic interactive readf from stdin

Karthikeyan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 26 17:15:25 PST 2015


On Sunday, 27 December 2015 at 00:20:51 UTC, Ali Çehreli wrote:
> On 12/26/2015 12:11 PM, karthikeyan wrote:
>
> > I read http://ddili.org/ders/d.en/input.html and inserted a
> space before %s
> > but still no use. Am I missing something here with the latest
> version?
>
> The answer is nine chapters later. :) (Use readln() and strip() 
> (or chomp())).
>
>   http://ddili.org/ders/d.en/strings.html
>
> Ali

Many thanks Ali. The book says ctrl + D to end input. But I used 
two enters to get the output. Any idea why? The book was great. 
Thanks a lot.



More information about the Digitalmars-d-learn mailing list