Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import scala.io.Source
- if(args.length > 0) {
- val lines = Source.fromFile(args(0)).getLines().toList
- for(line <- lines) {
- println(line.length + " " + line)
- }
- } else {
- println("Please enter a filename")
- }
Add Comment
Please, Sign In to add comment