Okay so I have fstreams that I swap between output and input. Is there anyway I can tell which openmode the fstream is in?
kyle.mace.35
0
Light Poster
Recommended Answers
Jump to PostDo you want the open mode that was passed to the constructor or open member function? Or do you want to know dynamically whether the last operation was a read or a write?
Ultimately, you'd need to maintain a flag providing this information, which could be stored in the
All 3 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
kyle.mace.35
0
Light Poster
deceptikon
1,790
Code Sniper
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.