Java tutorial
//package com.java2s; import android.content.Context; import java.io.FileInputStream; import java.util.Properties; public class Main { public static Properties loadConfig(Context context, String file) { Properties properties = new Properties(); try { FileInputStream s = new FileInputStream(file); properties.load(s); } catch (Exception e) { e.printStackTrace(); } return properties; } }