Home > Back-end >  Help Mac idea cannot read the file
Help Mac idea cannot read the file

Time:09-30

On the Internet to find a lot of solutions, but has not been solved,,,
Guy elder brothers to a recruit, thank thank!!!!!!

CodePudding user response:

Your hello. TXT is saved in the current and Java source file class in the same path? Don't use relative path to use absolute paths,
The new File ("/Users/diazepim/XXX/hello. TXT ");

CodePudding user response:

Path is wrong, should is not under the same path

CodePudding user response:

No, I test he can read but writing is false, should be a permissions problem,,
  • Related