you can also use Path from scala io to read and process files.
import scalax.file.Path
Now you can get file path using this:-
val filePath = Path("path_of_file_to_b_read", '/')val lines = file.lines(includeTerminator = true)
You can also Include terminators but by default it is set to false..