INI is hectic

well what im trying is that a java application should read a INI file(initialization file) while it starts , how can i specify a java program to read a INI file when it starts.any help is welcome with utmost gratitude
[231 byte] By [siv-viv] at [2007-9-26 1:17:06]
# 1

You shouldn't view Java as programs. What you mean maybe you want a Java CLASS to read an INI file when it is loaded. Follow the example code below:public class A {

static {

try {

FileInputStream fis = new FileInputStream("abc.ini");

fis.read(); // do whatever you need to read the file

}

catch (IOException ioex) {

}

}

// your other class code

...

}

btw, this is nothing related to Collections Framework.

--lichu

lichudang at 2007-6-29 0:46:01 > top of Java-index,Core,Core APIs...
# 2
You may want to use property files, rather than INI files.
schapel at 2007-6-29 0:46:01 > top of Java-index,Core,Core APIs...