I have been looking on Google for a while now, and I just cant seem to find or remember how to access a file on the desktop with a URL
. It's really frustrating me. Here is what I feel like it should be:
URL url = new URL("C:\\Users\\Austin\\Desktop\\hi.gif");
But it is just not working. I believe there is something that I should put instead of new URL
but I cant find it. I've tried every search term I can think of.
How to turn file path as String
into URL
?