Results 1 to 7 of 7

Thread: INI File Poser...

Threaded View

  1. #6
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    If are just attempting to READ the values, here is a module I wrote for that purpose a while ago:

    You load the INI first using

    LoadINI(iniName)

    Then to get values:

    GetIniValue("General", "NumberOfLevels")

    Would Get
    [General]
    NumberOfLevels = 5

    It would return 5

    It's relatively intellegent and for any value not in a header (such as your example) it will be in "Uncategorized"
    Attached Files Attached Files
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

Posting Permissions

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



Click Here to Expand Forum to Full Width