Re: Can't detect EOF from stdin on windows console

2006-04-03 Thread Peter Hansen
Serge Orlov wrote: > Dmitry Anikin wrote: >>I want to read stdin in chunks of fixed size until EOF >>I want to be able (also) to supply data interactively in console >>window and then to hit Ctrl+Z when finished > > [snip fighting with windows] > >>Read at most size bytes from the file (less if t

Re: Can't detect EOF from stdin on windows console

2006-04-03 Thread Serge Orlov
Dmitry Anikin wrote: > I want to read stdin in chunks of fixed size until EOF > I want to be able (also) to supply data interactively in console > window and then to hit Ctrl+Z when finished [snip fighting with windows] > Read at most size bytes from the file (less if the read hits EOF before >