GithubHelp home page GithubHelp logo

ahk_ini's Introduction

AHK_ini

AutoHotkey Functions to read and write ini files.

See the ahk_ini_sample.ahk file for sample code.

ReadIniFile will read the file and return a 2 level array of the ini content

[section one]
key1=value
key2=value
[section two]
key=value

will become an array similar to

{"section one": {"key1":"value", "key2":"value"}
,"section two": {"key":"value"} }

WriteIniFile will overwrite the ini data into the file, (probably) in alphabetical order. Any empty lines or comments will be deleted. It returns 0 if the file was saved or 1 if there was an error.

Similar code to the ReadIniFile function can be found by G33kDude https://github.com/G33kDude/CodeQuickTester/blob/5488c4c55647182b66ff29f787c15e9ba81df82d/lib/Utils.ahk#L125

ahk_ini's People

Contributors

imordecai avatar

Stargazers

 avatar  avatar  avatar Shawn Brooker avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.