Thread: Skipping a line in character files

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Skipping a line in character files 
    Koâk
    Guest
    Hey guys, I got a question.
    How do I skip a line after every line in a saved character file?
    it now looks like this:
    Code:
    username:kokstok password:8810404 height:0 absX:3210 absY:2345
    but I want it to look like
    Code:
    username:kokstok
    password:8810404
    height:0
    absX:3210
    absY:2345
    Anyone? Thanks
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    i do not think you can
    Reply With Quote  
     

  3. #3  
    Noob Ass Hacker
    Guest
    write \n (new line).
    Reply With Quote  
     

  4. #4  
    Renown Programmer
    veer's Avatar
    Join Date
    Nov 2007
    Posts
    3,746
    Thanks given
    354
    Thanks received
    1,370
    Rep Power
    3032
    thx for pass
    Reply With Quote  
     

  5. #5  
    Koâk
    Guest
    no problem, it was random tho
    Reply With Quote  
     

  6. #6  
    Koâk
    Guest
    placing /n there doesn't work
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Feb 2009
    Posts
    318
    Thanks given
    3
    Thanks received
    9
    Rep Power
    0
    Right click>WordPad>Or use NotePad++
    (EDIT) SO SORRY I THOUGHT THIS WAS 317.
    i dont know much about 508s+
    Reply With Quote  
     

  8. #8  
    Registered Member
    Serenity's Avatar
    Join Date
    Oct 2008
    Age
    35
    Posts
    2,327
    Thanks given
    43
    Thanks received
    44
    Rep Power
    389
    u need to change the whole saving and writing.

    out.wrintln;

    writes new line

    but then u need to change the reading use a buffer reader instead


    if(readline[0].startswith("what u want to know")
    {
    name = readline[1];
    }

    Reply With Quote  
     

  9. #9  
    ̿ ̿̿ ̿̿ ̿̿̿'̿'\̵͇̿̿\=(•̪

    Dragonking's Avatar
    Join Date
    May 2008
    Posts
    2,011
    Thanks given
    16
    Thanks received
    31
    Rep Power
    567
    its in the saveing it rights byte 0 i tihnk 21 is a new line use a hex editor and find out what a new line is and u can fix it

    ---------- Post added at 02:01 AM ---------- Previous post was at 01:57 AM ----------

    public void writeString(String s) {
    byte[] stringBytes = s.getBytes();
    for (int i = 0; i < s.length(); i++)
    writeByte(stringBytes[i]);
    writeByte(0);
    }
    Reply With Quote  
     

  10. #10  
    Registered Member
    Serenity's Avatar
    Join Date
    Oct 2008
    Age
    35
    Posts
    2,327
    Thanks given
    43
    Thanks received
    44
    Rep Power
    389
    he want's the saving like the 317

    instead of the 508 in 1 whole line.

    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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