Skip to content

Reading and writing Windows-style INI files (writing not yet implemented).

License

Notifications You must be signed in to change notification settings

JuliaIO/IniFile.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IniFile.jl

Build Status

Reading and writing Windows-style INI files from Julia

Usage

Pkg.add("IniFile") # first-time only
using IniFile # load code into current session

Create IniFile

ini = Inifile()

Get defaults & sections of an IniFile

sections(ini)
defaults(ini)

Get specific key from section, return default if not found

get(ini, "section", "key", default)

Set key for section

set(ini, "section", "key", value)

Parse a *.ini file

ini = read(Inifile(), "file.ini")

Write out a *.ini file

open("file.ini", "w+") do io
    write(io, ini)
end