Tuesday, April 19, 2011

Finding the current working directory in java

The current directory can be found using getProperty() method.

String curDir = System.getProperty("user.dir");

No comments:

Post a Comment

Chitika