Browse files

simplify echo example

  • Loading branch information...
1 parent 4977843 commit 08937415bc25a7c92c9dbb85ba182616a6feeedb @bakkdoor committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/echo.fy
View
4 examples/echo.fy
@@ -3,13 +3,13 @@
if: (ARGV[1]) then: |filename| {
try {
- File open: filename modes: ['read] with: |f| {
+ File read: filename with: |f| {
until: { f eof? } do: {
f readln println
}
}
} catch IOError => e {
- "[ERROR] " ++ (e message) println
+ "[ERROR] #{e message}" println
}
} else: {
"Usage: fancy echo.fy [filename]" println

0 comments on commit 0893741

Please sign in to comment.