I have a folder structure like below:
- main -- java -- resources -- scalaresources --- commandFiles
and in that folders I have my files
The required file can be accessed as below from resource folder in scala
val file = scala.io.Source.fromFile(s"src/main/resources/app.config").getLines().mkString