Guest User

Untitled

a guest
Jan 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import scala.io.Source
  2.  
  3. if(args.length > 0) {
  4. val lines = Source.fromFile(args(0)).getLines().toList
  5. for(line <- lines) {
  6. println(line.length + " " + line)
  7. }
  8. } else {
  9. println("Please enter a filename")
  10. }
Add Comment
Please, Sign In to add comment