Jump to content

Loading an INI-file from a resource, and then parsing it


Go to solution Solved by SmOke_N,

Recommended Posts

Posted

So, apparently, ResourcesEX contains a relevant example:

; String resources.
#AutoIt3Wrapper_Res_File_Add=string_1.ini, RT_STRING

And I'm sure it'll work just fine, however, none of the available APIs support parsing an INI from a string rather than a file. I don't want to extract the ini to disk, otherwise it would have been easy, of course. ;) 

I've searched the forum, no success. Any tips or tricks before I start writing my own parser?

  • Moderators
  • Solution
Posted

I've written one that I haven't maintained in years, but I know others have as well.

Here is mine:
 
But Azio's is probably better maintained:

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted (edited)

will have to be faster and more accurate about special caracter as NULL or VT or FF etc must be full compaibile with AutoIt Registry Function etc etc 

Ciao.

Edited by DXRW4E

apps-odrive.pngdrive_app_badge.png box-logo.png new_logo.png MEGA_Logo.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...