At 12:34 5/7/00 +0200, you wrote:
>Hi Peter,
>
>maybe I didn't understand what you've tried. The appended little
>program sets user.dir to whatever you provide on the command line, and
>invokes pwd after that. The result on my linux box with Blackdown's
>JDK 1.2.2RC4:
>
>[EMAIL PROTECTED] ~ >pwd
>/home/bodewig
>[EMAIL PROTECTED] ~ >java Cd /tmp
>/home/bodewig
No but what I was trying to say is that it seems that you can change
working directory in the process. ie so that -- new File("blah.txt") -- can
refer to different things depedning on what the working directory is at the
time you access file.
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*