I have an IO program which reads file from a directory(source directory) and writes files to another directory(destination directory)
I want to avoid using OS specific hardcoding in my .java files such as (/ for windows) or (\\ for unix)
I want my code to run on Solaris also.
How do i take care of this & provide .java files which dont need to recompiled when taken to a different platform.
My directory structures are deep
eg) on windows D:\testdir\test\filename.csv
How do I go about this