A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
getting the File from Current directory
Chiranjeevi Kanthraj
Ranch Hand
Joined: Feb 18, 2008
Posts: 283
I like...
posted
Jun 08, 2008 02:46:00
0
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 ]
-Chiru
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
Jun 08, 2008 02:56:00
0
By using an absolute path: new File("/util/xx.txt")
Android apps
–
ImageJ plugins
–
Java web charts
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: getting the File from Current directory
Similar Threads
RandomAccessFile
Struts on TomCat
read a Double from a File
file name matters ?
Struts on TomCat
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter