Re: Problem with simple Formatted Input example.

2015-02-07 Thread Venkat Akkineni via Digitalmars-d-learn
On Sunday, 8 February 2015 at 00:47:46 UTC, Ali Çehreli wrote: On 02/07/2015 04:42 PM, Ali Çehreli wrote: > > readf("%s\n", &firstName); > I see that readf reads the first line of entry *after* I press > two Enters on the console. OK, that is related to the '\n' character that you ha

Re: Problem with simple Formatted Input example.

2015-02-07 Thread Ali Çehreli via Digitalmars-d-learn
On 02/07/2015 04:42 PM, Ali Çehreli wrote: > > readf("%s\n", &firstName); > I see that readf reads the first line of entry *after* I press > two Enters on the console. OK, that is related to the '\n' character that you have in the format string. Also, repeating the space characters h

Re: Problem with simple Formatted Input example.

2015-02-07 Thread Ali Çehreli via Digitalmars-d-learn
On 02/07/2015 04:29 PM, Venkat Akkineni wrote:> This simple program seems to just hang. I am probably missing something. > Any help is appreciated. I am using Linux with DMD. Program compiles > fine, but when enter a string & press enter, the programs seems to wait > forever without returning. >