make a local file -> URL ???
Posted on 1997-12-22
I am currently writing a Java application (not an applet). To load a particular file (from the local hard disk), I need to have it represented as a URL class object. If I know my file to be: "C:\JavaWork\Sounds\mysound.au", how do I turn this into a URL?
I am not sure how to tell the URL constructor that this is a local file and how to represent the path and file name to the URL constructor so it is found.