/*
 * Copyright © 2016, Gábor Kolozsy. All rights reserved.
 */
package hu.gaborkolozsy.dictionary.model;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * Get and store properties.
 * 
 * @author Kolozsy Gábor (kolozsygabor@gmail.com)
 * 
 * @see java.io.FileInputStream
 * @see java.io.FileOutputStream
 * @see java.io.IOException
 * @see java.util.Properties
 * @since 0.1.0
 */
public class Config {
    
    /** Config file name. */
    private final String FILE = "config.ini";
    
    /** {@code Properties} objetc. */
    private final Properties properties = new Properties();
    
    /**
     * Load properties.
     * @param key the key
     * @return property by specified key
     * @throws IOException by file error
     */
    public String getPropertie(String key) throws IOException {
        this.properties.load(new FileInputStream(FILE));
        return properties.getProperty(key);
    }
    
    /**
     * Store properties.
     * @param key the key
     * @param value the value
     * @throws IOException by file error
     */
    public void storePropertie(String key, String value) throws IOException {
        this.properties.setProperty(key, value);
        this.properties.store(new FileOutputStream(FILE), "Config");
    }
}

@@ -34,35 +34,14 @@
 ozsy
-. All rights reserved.
 %0A
+
  */%0A
+%0A
 pack
@@ -269,20 +269,33 @@
 or (
+gabor.
 kolozsy
-gabor
+.development
 @gma
@@ -483,16 +483,24 @@
     /** 
+%0A     * 
 Config f
@@ -509,16 +509,22 @@
 e name. 
+%0A     
 */%0A    p
@@ -577,16 +577,24 @@
     /** 
+%0A     * 
 %7B@code P
@@ -612,11 +612,17 @@
 obje
-tc.
+ct. %0A    
  */%0A

Update Config.java