1) In Window OS file path are represented as “c:\a.txt”,but in other OS it might differ from Windows OS.
But in
java if I use the below state how the “path of file” given in Windows OS and other OS also??
File f =new File(“path of the File:”)
2) in java class if I create file “a.txt” is valid in windows OS ,The same ”a.txt” is valid file in OS except windows ??.
If I have to create a class which should run in OS such as windows,Unix,Linux ,etc,then How I write my java class to create file?
3)Java has any standard representation to represent file path???
4) If I read path “c:/a”,then java consider “c:a” only,why this is?
Note I use Windows XP OS