def writeToFile()

in src_en/src/main/scala/services/FileServiceImpl.scala [17:29]


  def writeToFile(path: String, data: String): Boolean = {
    try {
      val writer: PrintWriter = new PrintWriter(new File(path))
      writer.write(data)
      writer.close()
      true
    }
    catch {
      case ex: Exception =>
        logger.error(s"Failed to write the file at path $path, with the following exception $ex")
        false
    }
  }