i need to write the value of a pointer into file then read it can you help me
thanx
mhm_ra
0
Newbie Poster
Recommended Answers
Jump to PostTo get the address of the pointer depends on how it was initialized.
If it was initialized as a pointer:
int* int_ptr;
To send the address to an ostream just use
out << int_ptr;
If you don't have a pointer, but only a variable:
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mhm_ra
0
Newbie Poster
nanodano
0
Junior Poster in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.