Scientific Experiences
My experiences in Computer Engineering field.
Friday, May 20, 2011
Getting Current Directory In Java
To get the current directory address, these two methods are useful:
new File(".").getAbsolutePath();
System.getProperty("user.dir");
Thanks to
Java-Forums
.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment