I want to read the files by using relative path and writing the content into destination file using the relative path.
Suppose i have the file in my D:/Projects/MyProjects/SuppotTools/internal-file.xml
.
I want to read the above file using relative path like:
File file = new File("/../../internal-file.xml")
and same thing i want to write into the destination folder:
D:/Projects/MyProjects/SuppotTools/processed-files/internal-file.xml
.
using relative path.
Could any body tell me how to do it?