Created
September 22, 2011 03:39
-
-
Save onote2/1233967 to your computer and use it in GitHub Desktop.
a simple implementation in Scala.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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