I have a folder structure like below:
- main -- java -- resources -- scalaresources --- commandFiles
and in that folders I have my files
For Scala >= 2.12, use Source.fromResource:
Source.fromResource
scala.io.Source.fromResource("located_in_resouces.any")