Created
March 22, 2018 14:44
-
-
Save gbersac/ba62247db1077c4ff4e017362f0ccccf to your computer and use it in GitHub Desktop.
File from test resources folder #scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.io.Source | |
def fileToString(fileName: String, folder: String): String = | |
Source.fromURL(getClass.getClassLoader.getResource(folder + fileName)).mkString |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment