I have a requirement to parse a log file in a Linux dir and use information in that log file as some status, create a HTML table and send a mail so that the information looks in a tabular format. Generally, I parse a file in Scala in the following way:
import scala.io.Source
val filename = "fileopen.scala"
for (line <- Source.fromFile(filename).getLines) {
println(line)
}
But I am trying to put the parsed information into a HTML Table which I don't have a clue about. I know this can be done in Java as folks in my project have their UI code (HTML) mixed with Java code. Could anyone let me know if it is possible to in Scala. Is there any documentation or links to implement it in Scala ?