Thread: writing binary, help please!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    CNewbie
    Join Date
    Nov 2005
    Location
    Oz
    Posts
    31
    Excellent Quantum1024.... You are totally correct.

    I don't know what i did before... I must of typed an earlier.exe
    that just copied the literal string, by mistake..

    But i tried it again, and it does look correct in notepad...
    So again, i very much appreciate the help...

    You have offically been lifted to "Legend" status...

    It's weird i'd store it differently, than the script...

    ie, 70, instead of 070...

    I now understand why, although i wonder why the scripting langauge chose to add the 0, as it caused me so much extra effort initially to put those in the script to begin with....

    But thanks again, and to everyone really is appreciated...

    Because i know it does actually work now, that gives great incentive to actually go and read up a bit on why.... I always work backwards for some reason... So thanks... Woohoo..

  2. #2
    CNewbie
    Join Date
    Nov 2005
    Location
    Oz
    Posts
    31
    EDIT -DOH, worked it out.
    Last edited by Freestyler; 11-24-2005 at 01:13 AM.

  3. #3
    CNewbie
    Join Date
    Nov 2005
    Location
    Oz
    Posts
    31
    Okay, so i just remove the leading zero's from the 8 and it works as expected. So thanks again.
    Last edited by Freestyler; 11-24-2005 at 01:10 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing std::string in binary mode
    By VirtualAce in forum C++ Programming
    Replies: 16
    Last Post: 11-06-2010, 07:39 PM
  2. Writing a struct to a binary file
    By Scarvenger in forum C++ Programming
    Replies: 8
    Last Post: 09-12-2006, 01:50 AM
  3. Writing binary data to a file (bits).
    By OOPboredom in forum C Programming
    Replies: 2
    Last Post: 04-05-2004, 03:53 PM
  4. binary search and search using binary tree
    By Micko in forum C++ Programming
    Replies: 9
    Last Post: 03-18-2004, 10:18 AM
  5. binary to decimal
    By miryellis in forum C Programming
    Replies: 7
    Last Post: 03-14-2004, 08:35 PM