def readFromFile()

in src_en/src/main/scala/services/FileServiceImpl.scala [31:41]


  def readFromFile(path: String): String = {
    val fileTest: File = new File(path)
    if (fileTest.isFile && fileTest.exists()) {
      scala.io.Source.fromFile(path).mkString
    }
    else {
      logger.error(s"Failed to read file from location $path")
      logger.info("Returning empty content")
      ""
    }
  }