|
getting paths and directories
hey i am working on a massive RPG i want to put online, and right now i have to run it on the applet (on my desktop) with the entire filepath, and i have a variable there
private final String FILEPATH = "C:\\Documents and Settings\\Desktop\\RPG\\";
now if it goes online i would have to change the filepath to "www.w/e the site will be.com\\" and recompile which would be a total pain!!!
is there anyway that i could make the FILEPATH variable just get the current directory it is in?
|