• Post Reply Bookmark Topic Watch Topic
  • New Topic

Loading an HTML file  RSS feed

 
Scotty Steven
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I load an html file located in the same directory as the program it's self. See line 14 of the below code. I put the file in C:, but I want to run it from the same directory as the rest of the program, and that path could change from time to time.

 
Scotty Steven
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It took some playing around, but the answer ended up being:

String file = "file:./Method Doc.html";
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!