Today I saw in a Java application several different approaches to load a file.
- file:/
- file://
- file:///
What is the difference of these three URL beginnings and what is the preferred way of using them?
Thanks a lot
Stefan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
file:/is invalid as far as I knowfile://is the prefix for the file protocolfile:///is the prefix for the file protocol, plus a leading/pointing to the root directory of the current drive (On Windows) or the overall root directory (On Linux / Unix).