appending paths

From: Rex Guo (rexguo_at_hotmail.com)
Date: 03/29/04


Date: 29 Mar 2004 07:44:31 -0800

Hi!

Given 2 paths as File objects:
1. C:/a/b/c/
2. ../d

How do I append #1 and #2 to get "C:/a/b/d"?

Are there any standard Java API that does this?
Please don't suggest string manipulation! ;-)
Thanks!

.rex



Relevant Pages

  • appending paths
    ... Given 2 paths as File objects: ... Are there any standard Java API that does this? ... Please don't suggest string manipulation! ...
    (comp.lang.java.programmer)
  • Re: appending paths
    ... > Given 2 paths as File objects: ... > Are there any standard Java API that does this? ... likely be problems if the second spec is an absolute pathname (in that ... ways to get the pathname string out of it. ...
    (comp.lang.java.programmer)
  • Re: appending paths
    ... > Given 2 paths as File objects: ... > Are there any standard Java API that does this? ... likely be problems if the second spec is an absolute pathname (in that ... ways to get the pathname string out of it. ...
    (comp.lang.java.help)
  • Re: appending paths
    ... Rex Guo wrote: ... > Given 2 paths as File objects: ... > Are there any standard Java API that does this? ... catch(IOException e) { ...
    (comp.lang.java.programmer)