Results 1 to 6 of 6

Thread: WriteINI(); Question...

  1. #1
    Join Date
    Jul 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default WriteINI(); Question...

    Is it possible to write comments into .Ini files using the WriteINI function? If so please tell me, thank you.

    - Barrier

  2. #2
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program New;

    procedure Example;
    var
      INIData: String;
    begin
      WriteINI('Example #1', 'Example', 'This is example number one', 'C:\Example.ini');
      WriteINI('Example #2', 'Example', 'This is example number two', 'C:\Example.ini');
      INIData := ReadINI('Example #1', 'Example', 'C:\Example.ini');
      Writeln(INIData);
      INIData := ReadINI('Example #2', 'Example', 'C:\Example.ini');
      Writeln(INIData);
    end;

    begin
      ClearDebug;
      Example;
      Writeln('See that?');
      Writeln('Now open up C:\Example.ini to show what it created :)');
    end.

  3. #3
    Join Date
    Jul 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Jason2gs View Post
    SCAR Code:
    program New;

    procedure Example;
    var
      INIData: String;
    begin
      WriteINI('Example #1', 'Example', 'This is example number one', 'C:\Example.ini');
      WriteINI('Example #2', 'Example', 'This is example number two', 'C:\Example.ini');
      INIData := ReadINI('Example #1', 'Example', 'C:\Example.ini');
      Writeln(INIData);
      INIData := ReadINI('Example #2', 'Example', 'C:\Example.ini');
      Writeln(INIData);
    end;

    begin
      ClearDebug;
      Example;
      Writeln('See that?');
      Writeln('Now open up C:\Example.ini to show what it created :)');
    end.
    Thank you, I appreciate your help, but I wanted to know if it were possible to put a comment into an .ini file using WriteINI...

  4. #4
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    That's not possible with WriteINI
    I made a new script, check it out!.

  5. #5
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Barrier View Post
    Thank you, I appreciate your help, but I wanted to know if it were possible to put a comment into an .ini file using WriteINI...
    Oh, my bad

    Edit: Why not just put a semicolon in front of the KeyName?

  6. #6
    Join Date
    Jul 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Jason2gs View Post
    Oh, my bad

    Edit: Why not just put a semicolon in front of the KeyName?
    Tried it :P

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. WriteINI
    By gerauchert in forum OSR Help
    Replies: 3
    Last Post: 02-20-2009, 08:09 AM
  2. Question about VM
    By kingarabian in forum News and General
    Replies: 2
    Last Post: 08-28-2007, 05:37 AM
  3. Question
    By Euro-Stylz in forum News and General
    Replies: 6
    Last Post: 03-06-2007, 06:12 AM

Posting Permissions

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