Answer the question
In order to leave comments, you need to log in
How to get file pointer?
The C language , when working with files, uses a pointer to a file, and libraries written on it do the same.
But C++ uses OOP sort of without this pointer.
Maybe I missed something, and the pointer can be obtained from the object?
As a last resort, if FILE is a structure, is it possible to somehow get / generate this structure from an object?
Do not include 2 libraries for working with files... Although you can return to the C version
. My case is libpng.
Answer the question
In order to leave comments, you need to log in
Judging from a similar question , there is no standard way to get FILE*
from std::fstrream
. But there are hacks, see the link .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question