Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

file path to url  RSS feed

 
S Shehab
Ranch Hand
Posts: 492
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: 55717
163
  • 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: 21092
85
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!