Write a Scala program that prompts the user to enter the name of a file to be read and displays the number of lines in the file. Ensure that the program follows proper coding conventions and includes error checking for a non-existent file.
This prompt doesn't seem malicious.