S
Soumen
Hi,
Is there a way to get C FILE pointer from std:stream? If so, how?
Looks to me there shouldn't be any since otherwise someone can get
FILE pointer and close it and then that std:stream object becomes
unusable.
I've a std:stream object at my end. And some library I need to use
in the middle of my program expects a log file as FILE pointer. If
there's a way to get FILE pointer from std:stram, my task becomes
little easy. Otherwise, I need to use different file for that library
to log its messages and then sync all those messages in my
std:stream object.
Regards,
~ Soumen
Is there a way to get C FILE pointer from std:stream? If so, how?
Looks to me there shouldn't be any since otherwise someone can get
FILE pointer and close it and then that std:stream object becomes
unusable.
I've a std:stream object at my end. And some library I need to use
in the middle of my program expects a log file as FILE pointer. If
there's a way to get FILE pointer from std:stram, my task becomes
little easy. Otherwise, I need to use different file for that library
to log its messages and then sync all those messages in my
std:stream object.
Regards,
~ Soumen