D
Dale Pennington
I find myself in the odd situation of trying to determine the name of a file
that has been opened somewhere else with an fopen call, so all I have is the
FILE * from that fopen call. I perused my favorite online C API reference
and did not find a method, but hopefully that means I did not look in the
right places (we all know how easy it is to find stuff once you know where
to acutally look).
So, the question, given a FILE *, can one get back to the name/path of the
file that was opened, and if so, how ?
Thanks for the assist,
Dale Pennington
that has been opened somewhere else with an fopen call, so all I have is the
FILE * from that fopen call. I perused my favorite online C API reference
and did not find a method, but hopefully that means I did not look in the
right places (we all know how easy it is to find stuff once you know where
to acutally look).
So, the question, given a FILE *, can one get back to the name/path of the
file that was opened, and if so, how ?
Thanks for the assist,
Dale Pennington