When open a file using Java, the absolute file path is different on various OS.
On Linux:
/usr/…/sample.xml
On Windows:
C:/windows/…/sample.xml (it’s / not \ neither \\)
On Mac OS:
I don’t eat Apple.
Relative file path is also allowed.
2008/06/11 作者:Jesse Hu
When open a file using Java, the absolute file path is different on various OS.
On Linux:
/usr/…/sample.xml
On Windows:
C:/windows/…/sample.xml (it’s / not \ neither \\)
On Mac OS:
I don’t eat Apple.
Relative file path is also allowed.
great insight.