FILE * and istream: connect the two?

后端 未结 3 1983
误落风尘
误落风尘 2020-12-10 15:37

Suppose I \"popen\" an executable, I get a FILE* in return. Furthermore, suppose I\'d like to \"connect\" this file to an istream object for easier

3条回答
  •  失恋的感觉
    2020-12-10 16:39

    Sure there's a way, implement your own istream that can be constructed from a FILE*.

    If you're asking whether there is a standard way to do this, then no.

提交回复
热议问题