Can you convert a FILE* stream to std::istream?

This is a discussion on Can you convert a FILE* stream to std::istream? within the C++ Programming forums, part of the General Programming Boards category; As far as I know, there's no C++ equivalent for popen() and many other C functions, and I like using ...

Can you convert a FILE* stream to std::istream?

As far as I know, there's no C++ equivalent for popen() and many other C functions, and I like using C++ as much as possible... Is there any way to convert a FILE* stream to a C++ stream like std::istream so I can use things like std::getline()...?