How to copy file in java

后端 未结 6 1892
后悔当初
后悔当初 2021-02-13 18:56

Im trying to copy a file in java and move it to a new folder. This is the code i HAve been using but I always get this error \"(Access is denied) in the specified directory\". I

6条回答
  •  感动是毒
    2021-02-13 19:58

    Hmm it looks like you are trying to run this on windows, should you not be using \ in your path instead of / ?

    As AlexR said check your permissions on the directory you are trying to write to.

提交回复
热议问题