Hello all. It's me again :)
This time I'd like to ask someone to explain me why this happens. I have this piece of
code:
test = do writeFile "/tmp/hsout" "first"
h <- readFile "/tmp/hsout"
writeFile "/tmp/hsout" "second"
putStr h
So, when i've done this i thought that (putStr h) would print the string "first". But
it didn't, it printed the string "second".
My question is why? And how can i do to print the first string instead of the first
one.
Thank you,
Jo�o
------------------------------------
geek code inside :: powered by linux
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell