Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FILE*

Status
Not open for further replies.

joeGrammar

Programmer
Jun 4, 2001
162
CA
I want to compare the value of a file pointer after subsequent operations. I have a situation where I have a FILE* as a private member of a class and it doesn't seem to be retaining its value between member functions. So:

How do I display the value of a file pointer?
 
Well joe, I'd just write

FILE* x;
cout << x;

which displays the hex value of x.
 
Sorry I wasn't being clear, this stuff was written in C so I have to use printf, I can't use cout.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top