[Mono-list] Simple Console ReadLine problem

Jonathan Pryor jonpryor at vt.edu
Fri Mar 28 15:52:00 EDT 2008


On Wed, 2008-03-26 at 12:13 -0700, radzfoto wrote:
> I compiled the following under MS Visual Studio and it worked fine. However,
> exact same code fails to read the string using ReadLine. Any ideas that
> could help me out?

The code you attached failed to compile (because you were missing '()'
after your second Console.ReadLine call).  The attached source code
works for me:

                jon at lina:tmp$ mcs rl.cs 
                jon at lina:tmp$ mono rl.exe 
                Enter some text and press enter: l;kj;lkj;lkj;lkj
                This is the text you entered: l;kj;lkj;lkj;lkj

How is the program behaving that makes you say it fails?

Thanks,
 - Jon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rl.cs
Type: text/x-csharp
Size: 492 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080328/6bc965d6/attachment.bin 


More information about the Mono-list mailing list