Answer to Question #20262 in C++ for roneey

Question #20262
can you give more than one parameter for modes in which a file is opened?if yes,how?
1
Expert's answer
2012-12-11T08:51:55-0500
#include <fstream>

using namespace std;

void main()
{
/* Open an existing binary file in append mode */
ifstream f("filename.bin", ifstream::binary | ifstream::app);
...
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS