config file inside a jar File

Hi all,i created a config file for some properties, to read that file i need to put full path on FileInputStream constructor, i need to put it in my jar distribution file, how can i write and read that file from main class? main class is in the same jar file.Thanks,
[287 byte] By [johnarevaloa] at [2007-11-27 9:34:06]
# 1
http://www.cs.duke.edu/courses/fall01/cps108/resources/jar.html
polimetlaa at 2007-7-12 22:57:25 > top of Java-index,Java Essentials,Java Programming...
# 2
thanks polimetla, now i can read my config file, do you know how to modify it?
johnarevaloa at 2007-7-12 22:57:25 > top of Java-index,Java Essentials,Java Programming...
# 3
WWBDLHD? Rather than attempting to rewrite the jar file, I would create an external config file, say in the folder holding the jar. For this to work, the app should look first for this external file and use the one in the jar as a default.
BigDaddyLoveHandlesa at 2007-7-12 22:57:25 > top of Java-index,Java Essentials,Java Programming...
# 4
well, config file stores some passwords, and have in default folder is insecure, although that info is encripted, i prefer dont leave in the most obvious path, like user folder or current working directory
johnarevaloa at 2007-7-12 22:57:25 > top of Java-index,Java Essentials,Java Programming...
# 5

> well, config file stores some passwords, and have in

> default folder is insecure, although that info is

> encripted, i prefer dont leave in the most obvious

> path, like user folder or current working directory

Unzipping a jar file isn't that difficult...

BigDaddyLoveHandlesa at 2007-7-12 22:57:25 > top of Java-index,Java Essentials,Java Programming...