Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Counting lines of a file Date: Sat, 06 Oct 2018 13:22:42 -0700 Organization: None to speak of Lines: 19 Message-ID: References: <20181003115738.6c3a85e3937796c66f834221@g{oogle}mail.com> <6b3cdccb-6657-4980-b78e-05a6107221b0@googlegroups.com> <139e7b7f-17d7-4926-b5ad-316382fe13d9@googlegroups.com> <87sh1msojj.fsf@bsb.me.uk> <874le2scpk.fsf@bsb.me.uk> <87va6hpzif.fsf@bsb.me.uk> <87lg7dnrnv.fsf@bsb.me.uk> <87o9c7ke1p.fsf@bsb.me.uk> <87zhvri0w1.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="04a4b922a9e1d576999de619c7c3138f"; logging-data="8072"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+y0IjzIDBzIvy7lNb1H+Hf" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:/gyshVlsgivkkKuL6nWPj6u4mkU= sha1:IwW7TF0+yutYMnLCtI6ACDc2e+w= Xref: csiph.com comp.lang.c:136363 Bart writes: [...] > To me, stdin is what you might use to read interactively from the keyboard. Yes, that's one of many possible ways stdin can be used. But if you seriously think that's the *only* way it's used, I can see why you don't understand what we're talking about. Even on Windows, you can run a program with its input redirected from a file (... < file) or a pipe (program1 | program2). (And again, that's not "con".) [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"