Ios_binary

Joined
Dec 1, 2007
Messages
1
Reaction score
0
Hi to all,

I'm a newbie to ts group as well as C++,i have a doubt in the ofstream write function.
I have a code like this
ofstream* rgpostrm [BASE_LAYER];

rgpostrm [BASE_LAYER] = new ofstream (pchCmp, ios::binary | ios::eek:ut);
and some write function like
rgpostrm[ENHN_LAYER]->write(rgpvoenc [ENHN_LAYER]->pOutStream () str(),
rgpvoenc [ENHN_LAYER]->pOutStream () ->pcount ());

where the pchCmp is a string pointer points to the output file path.
I googled and found some related topics which has
1)
ofstream outfile ("new.txt",ofstream::binary);
outfile.write (buffer,size);
2)
ofstream out("test", ios::eek:ut | ios::binary);

My question is whether my code has the same property of writing the buffer content of size n in the output file.
What it says for ios::binary | ios::eek:ut and ios::eek:ut | ios::binary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top