• Post Reply Bookmark Topic Watch Topic
  • New Topic

path problem  RSS feed

 
Shruthi Babu
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a txt file in folder A/f1.txt and I have another java file in another package. How should I refer the path of the text file in the java file . Any help is highly appreciated.
 
v ray
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
new File("/A/f1.txt");

This should do I think...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!