Results 1 to 5 of 5

Thread: Write ini or txt files in scar

  1. #1
    Join Date
    Dec 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Write ini or txt files in scar

    Please help im trying to save the information in a txt file or a ini file... just random information and i cant figure it out... for what i have is

    WriteINI('Autospammer', 'Combo1', 'bob.txt', 'bob.ini'); yeah... i took a swing at it just to see if it would work. it doesnt and it says

    Successfully compiled
    [Runtime Error] : Exception: Unable to create directory in line 37 in script C:\Program Files\SCAR 3.12\Scripts\gaia test.scar

    so... how do i do this?

  2. #2
    Join Date
    Aug 2007
    Location
    Emo-land
    Posts
    1,109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    var FileNum : Integer;

    FileNum := RewriteFile(Path: string; Shared: Boolean);
    WriteFileString(FileNum, 'what you want to write');
    I just read through the SCAR manual. Havn't used this yet. I am guessing it is something like that, try it

  3. #3
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Thanks fr0zn, it does work.

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by sucidal_boredaholic View Post
    Please help im trying to save the information in a txt file or a ini file... just random information and i cant figure it out... for what i have is

    WriteINI('Autospammer', 'Combo1', 'bob.txt', 'bob.ini'); yeah... i took a swing at it just to see if it would work. it doesnt and it says

    Successfully compiled
    [Runtime Error] : Exception: Unable to create directory in line 37 in script C:\Program Files\SCAR 3.12\Scripts\gaia test.scar

    so... how do i do this?
    Your problem is that you filled in 'bob.ini' as a path. 'bob.ini' is not an entire path, take this as example :

    SCAR Code:
    WriteINI('TestSection', 'TestKey', 'TestKeyValue', 'C:\Test.INI');
      WriteINI('TestSection', 'TestKey', 'TestKeyValue', AppPath + 'Test.INI');
    Administrator's Warning:


  5. #5
    Join Date
    Dec 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you that works wonders!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 15
    Last Post: 09-22-2008, 12:32 PM
  2. [Scar IDE] How to set jEDIT to edit scar files corectly!
    By LordGregGreg in forum Outdated Tutorials
    Replies: 16
    Last Post: 06-23-2007, 01:19 AM
  3. SCAR Divi 3.01 DONT associate .scar files!!!
    By chimpy in forum News and General
    Replies: 1
    Last Post: 04-21-2007, 08:49 PM
  4. I cant download eny scar files!!
    By ultim8pker in forum News and General
    Replies: 6
    Last Post: 07-02-2006, 10:09 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
  •