This program also converts the Filename Path into URL. It reads a file name and converted into the URL.
toURL():
The toURL()
method of the
File
class is used to convert the file name path into the URL. This is done by
creating the instance of the URL class with the toURL() method of the File
class.
Here is the code of Convert the Filename Path into URL Program :
import java.io.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Convert a file name path to url and vice versa in java View All Comments
Post your Comment