• Post Reply Bookmark Topic Watch Topic
  • New Topic

file path to url

 
Sherif Shehab
Ranch Hand
Posts: 487
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i wanna change a normal file path to url format . for instance file path: c:\MyFolder\Myfile.txt i wanna change this path to URL so how i can do that ?
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With the appropriate method in the java.io.File class.
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And once you've found that one, notice it is deprecated and read what you should use instead. It's all in the API
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!