linphone-40685558 / group3-coursework

Apache License 2.0
0 stars 0 forks source link

[Bug]: Unable to write the file #154

Closed AungChan40685540 closed 1 week ago

AungChan40685540 commented 2 weeks ago

Contact Details

40685540@live.napier.ac.uk

What happened?

In this case, whenever I run the population report file, it tells that It can't write the md file for population report. I thinks it is an error of directory permission.

Environment

Mac OS

JDK Version

JDK 17

Where are you seeing the problem on?

Console, Terminal

Relevant log output

java.io.IOException: Unable to write to file: ./reports/Population_Report.md (Permission denied)
    at com.napier.gp3.Population_report.outputPopulationMarkdown(Population_report.java:95)
    at com.napier.gp3.Population_report.printWorldPopulation(Population_report.java:128)
    at com.napier.gp3.Main.main(Main.java:10)

Code of Conduct

AungChan40685540 commented 1 week ago

In this case, I delete the reports folder because, I accidentally give the wrong folder permission which not to write the files in the folder. So, delete it and run the code again. This is how I handle this error.