CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11

Thread: Urgent

Threaded View

  1. #1
    Join Date
    Mar 2006
    Posts
    26

    Resolved Urgent

    i am converting a integer number into 10 bit binary number and storing it in the following array

    char binary_no[10];

    binary_no[i] has either 0 or 1

    then i am writing it in a *.txt file using following function

    FileText.Write( binary_no,sizeof(binary_no));

    using above method will take 10 byte to store the number in a file
    but i don't want to waste the memory i want to store the binary number in 10 bits only.
    Last edited by punitpandia; March 17th, 2006 at 06:27 AM. Reason: space constraint

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured