Possible Duplicate:
Platform independent paths in Java
I make a program but it save some files in a directory that the user selects.
I need to make this program to work both in linux and windows , so for example on windows the directory seperator is \
and on linux is /
...
How can I import one value that represents both depending the operating system?