diff options
Diffstat (limited to 'fp2/week2/mart/Test.icl')
-rw-r--r-- | fp2/week2/mart/Test.icl | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fp2/week2/mart/Test.icl b/fp2/week2/mart/Test.icl deleted file mode 100644 index ff32dfe..0000000 --- a/fp2/week2/mart/Test.icl +++ /dev/null @@ -1,13 +0,0 @@ -implementation module Test
-
-import StdIOMonad
-
-// This assumes a file "camil.txt" and writes a line from it to "mart.txt"
-Start world = doIO (
- open "camil.txt" Lees >>=
- \_ = open "mart.txt" Schrijf >>=
- \_ = readline "camil.txt" >>=
- \l = writeline (fromJust l) "mart.txt" >>=
- \_ = close "camil.txt" >>=
- \_ = close "mart.txt"
- ) world
|