Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bryant Smith   on May 26 In Java Category.

  
Question Answered By: Francis Riley   on May 26

You can use the System Property to get the user's current  working
directory, but I don't see anything wrong with your code. Both
versions worked when I tested them.

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

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on opening a file in FileWriter Or get search suggestion and latest updates.


Tagged: