directory name problem with new File ( ) command
Posted on 2003-12-10
im creating a server. At the moment the user selects the specified directory they which to work from by entering the name of the directory on the command line (via an args request).
See example below:
directory = new File(args);
What im trying to do is "hard code" the name of the directory into the above example, like:
directory = new File("somedirectory");
but it won't allow this, can anyone help?????
Ive seen example like :
File directory = new File("C:\\JavaSource");
but as the "class" file could run on any machine, this is not a practical solution
Thanks for any help or advice in advance...