Apr-04-2019, 04:27 AM
in a program that usually opens, reads and closes files, it sometimes reads stdin. it will only read it to EOF once. is it then safe to close it? if so, then i can omit the test to see if it is stdin. i know it's a cost one way or the other, but a small one. but the test just looks silly.