View Single Post
  #1 (permalink)  
Old 08-09-2007, 10:42 PM
marco marco is offline
Member
 
Join Date: Jul 2007
Posts: 23
marco is on a distinguished road
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?
Reply With Quote
Sponsored Links