Jump to content

  •  

  • iBotModz CBox


    Photo

    Write Null Bytes


    • Please log in to reply
    3 replies to this topic

    #1 Rogue Modder

    Rogue Modder

      Class of 2008

    • VIP

    • 1,328 posts
    • Joined: 02-January 09
    • Gender:Male
    • Location:London, UK

    Posted 26 August 2009 - 09:26 PM

    I have an app i'm making. At the moment it writes the length of the txt box, but of any string that is longer and you make it shorter, it shows the last bit of the string.

    Example:
    Posted Image


    I want it to say Modded by Dakote, and as default is says "PRESS ANY KEY TO CONTINUE". As you can see, it mas my string + the original one added on the end. Can anyone help me? Thanks.

    #2 TheEazyB

    TheEazyB

      Corporal Grade 1

    • Donors+

    • 333 posts
    • Joined: 09-June 08
    • Gender:Male

    Posted 27 August 2009 - 04:16 AM

    use spaces? or add the null bytes to the string? I don't see which part you're having trouble with.

    Edited by TheEazyB, 27 August 2009 - 04:18 AM.


    #3 Rogue Modder

    Rogue Modder

      Class of 2008

    • VIP

    • 1,328 posts
    • Joined: 02-January 09
    • Gender:Male
    • Location:London, UK

    Posted 27 August 2009 - 07:11 AM

    "or add the null bytes to the string?"

    #4 NOPxK9

    NOPxK9

      Private

    • Members+

    • 42 posts
    • Joined: 22-April 09

    Posted 22 November 2009 - 05:59 AM

    "or add the null bytes to the string?"



    Ugh. Failkid. lol rogue....


    either bw.Write((byte)0);

    or bw.Write(' ' );

    lol. It twas in tha arials........(which I never released an update to)