summaryrefslogtreecommitdiff
path: root/appendtodo.hs
blob: 6c3970ce8a043ca9d12fb1d186d854e675abb8bc (plain)
1
2
3
4
5
6
7
8
import System.IO

main = do
    todoItem <- getLine
    if null todoItem then return () 
        else (do 
            appendFile "todo.txt" (todoItem ++ "\n")
            main)