okay..
i forgot to mention how System Properties replaces these environment specific values..
1. file path separator
System.getProperty("file.separator")
2. PATH separator
System.getProperty("path.separator");
3. new line character
System.getProperty("line.separator");
write the following code and run on different OS to see the results,
class testSP {
public static void main(
String[] s) {
System.out.println(System.getProperty("file.separator"));
System.out.println(System.getProperty("path.separator"));
System.out.println(System.getProperty("line.separator").length());
}
}
regards
maulin