(Source Code) Static function to get current working directory
Submitted by guru on Fri, 01/23/2009 - 12:13
Source Code : Static function to get current working directory
The following static function can be used to get the current working director.
Code:
private static void doGetDir() {
String curDir = System.getProperty("user.dir");
System.out.println("\nThe current working directory is:");
System.out.println(" - " + curDir);
}
Courtesy:- Java-forums.org
- guru's blog
- Login to post comments
