Read from file or stdin

前端 未结 6 1184
北恋
北恋 2020-11-30 01:08

I am writing a utility which accepts either a filename, or reads from stdin.

I would like to know the most robust / fastest way of checking to see if stdin exists (d

6条回答
提交回复
热议问题