Can someone show me how to write the binary string 100001 to a file?
I googled something and found lots of tutorials but none really
explain how to do that very well.
Here's what I have right now, wrong of course.
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream outFile;
outFile.open("file.txt", ios::in | ios::binary);
outFile.write(100001,6);
outFile.close();
return 0;
}
Thanks alot,
Plano9
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
>-----------------------------------------~-~>
CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at
http://www.eScribe.com/software/C-Paradise/
>------------------------------------------_->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/C-Paradise/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/