• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting the File from Current directory  RSS feed

 
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i have a file in folder called /util/xx.txt

my code is running in /run/runing.java

how can i get the file xx.txt from my code
[ June 08, 2008: Message edited by: Chiru Raj ]
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using an absolute path: new File("/util/xx.txt")
 
Screaming fools! It's nothing more than a tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!