|
Hi all!
I have file wich contains a bunch of relative paths to other files, I am looking for a way to calculate the absolute path for these realtive paths with the absolute path of the file itself as a base.
Exampel: I have this file: c:\somedirectory\projects\project\MyFile.xml
Wich contains paths like this: ..\otherdirectory\testfil1.txt ..\..\yeatanother\otherfile.txt
The calculation should result in: c:\somedirctory\projects\otherdirectory\testfil1.txt c:\somedirctory\yeatanother\otherfile.txt
Is there any direct support for this in the bcl or does anyone know a way to do this?
Regards! Pelle
|