Results 1 to 3 of 3

Thread: writing to local file

  1. #1
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default writing to local file

    What function do i use to write to a file. i want to be able to store the values of various variables in a file and use the script to create them, read them and update them. then next time the script is run, to read and update them?

    example
    Total_Shrimps_Caught =
    Total_Shrimps_Cooked =
    Total_Shrimps_Burnt =

    thanks

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    procedure WriteINI(Section, KeyName, NewString, FileName: string);
    Writes data to an ini-structured file.
    Structure:
    [Section]
    KeyName=NewString

    function ReadINI(Section, KeyName, FileName: string): string;
    Reads data from an ini-structured file.
    Structure:
    [Section]
    KeyName=SomeString

    procedure DeleteINI(Section, KeyName, FileName: string);
    Deletes a KeyName from an INI file and if you pass an empty string as KeyName it will delete then entire Section.

    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cool thanks

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

Thread Information

Users Browsing this Thread

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

Posting Permissions

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