Skip to content

Instantly share code, notes, and snippets.

@onote2
Created September 22, 2011 03:39
Show Gist options
  • Save onote2/1233967 to your computer and use it in GitHub Desktop.
Save onote2/1233967 to your computer and use it in GitHub Desktop.
a simple implementation in Scala.
import scala.io.Source
if (args.length > 0)
Source.fromFile(args(0)).getLines.foreach(print)
else
Console.err.println("Please enter filename")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment