How to read files from resources folder in Scala?
Resources in Scala work exactly as they do in Java. It is best to follow the Java best practices and put all resources in src/main/resources and src/test/resources. Example folder structure: testing_styles/ ├── build.sbt ├── src │ └── main │ ├── resources │ │ └── readme.txt Scala 2.12.x && 2.13.x reading a resource To read resources … Read more