On Nov 29, 2006, at 15:20 UTC, Charles Yeomans wrote: > On Nov 28, 2006, at 11:28 PM, Kem Tekinay wrote: > > > My console app reads a bunch of text from stdin until stdin.EOF is > > true. It > > then does some processing before it needs to prompt the user for > > more stuff. > > I think that this is what the method Input is for.
I think the method Input does the same thing as stdin.ReadLine. But I haven't actually tested it lately. In the same vein, my understanding of Unix is that when you press control-D to terminate console input (or equivalently, reach the end of a file you've piped to stdin), then that's it, that stream is permanently at EOF. I've never seen a Unix app where you can terminate input and then give more input later. A more typical solution, I think, is to terminate input with a blank line or a "." line or something like that. HTH, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
