Unexpected FileNotFoundException on FileWriter

后端 未结 2 1804
被撕碎了的回忆
被撕碎了的回忆 2021-01-26 16:10

I am attempting to create a simple text file that I will be writing to.

I receive the following error:

/Library/Java/Home/bin/java -Didea.launcher.port=7         


        
2条回答
  •  执笔经年
    2021-01-26 16:37

    You can't use a tilde ~ in your path. If you want the user's home directory, you can get it from System.getProperty("user.home")

提交回复
热议问题