Results 1 to 5 of 5

Thread: How can i make a newline when saving to a text file?

  1. #1
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default How can i make a newline when saving to a text file?

    Didn't this used to work?
    SCAR Code:
    WriteFileString(Number, Info + Chr(13));
    If i try that it makes just a square symbol and everything is one long string when it gets saved.
    This-
    SCAR Code:
    WriteFileString(Number, What + Chr(13) + is up);
    should give me
    "What
    is up"
    but i get
    "What[]is up"

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Instead of chr(13), use #10#13, or chr(10) + chr(13).
    (It may be the other way around, but I think that is right)

  3. #3
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Sweet
    its #13#10 but thanks a lot.
    btw what is chr(10)?

  4. #4
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    "New line"

  5. #5
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Kind of strange that it wouldn't just work with chr(10)
    but oh well its working now.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. File Saving Help??
    By Timer in forum OSR Help
    Replies: 4
    Last Post: 01-08-2008, 12:58 PM
  2. Saving chat to log file?
    By Maninblack144 in forum OSR Help
    Replies: 9
    Last Post: 12-29-2007, 02:06 AM
  3. Saving something to a file
    By Maninblack144 in forum OSR Help
    Replies: 14
    Last Post: 12-17-2007, 08:25 AM
  4. Saving to file
    By rivon in forum OSR Help
    Replies: 12
    Last Post: 09-22-2007, 06:45 PM

Posting Permissions

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