Hai plan09,
use fprintf() method.
Regards,
Mukil
--- plano9 <[EMAIL PROTECTED]> wrote:
>
> 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
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
>-----------------------------------------~-~>
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/