The well known way of creating an fstream object is:
ifstream fobj("myfile.txt");
ie. using a filename.
But I want to create an ifstream object using a file descriptor.
Reason: I want to execute a command using
_popen()._popen()returns the output as aFILE*. So there is a FILE* pointer involved but no filename.