Skip to content
/ J.ini Public

A simple, light .ini library for Java (Re-inventing the wheel, I know)

License

Notifications You must be signed in to change notification settings

MattFoy/J.ini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

J.ini

A simple, light .ini library for Java

(Work in progress)

Meant to be very light, simple, and easy to use for storing file-based settings and preferences.

Usage

Sample code:

import foy.util.JINI;

public class test {
  public static void main(String[] args) {
    // open a .ini file, the false flag specifies to not create it if it does not exist, 
    // but if it does not exist it will throw a FileNotFoundException
    JINI ini = new JINI("mySettings.ini", false);
    
    // add the "[TEST]" section to our ini file
    // it will throw an IOException if the section already exists
    ini.addSection("TEST");
    
    // add the Key-Value-Pair "x=0" under the "[TEST]" section
		ini.addKVP("TEST", "x", "0");
  }
}

About

A simple, light .ini library for Java (Re-inventing the wheel, I know)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages