22 Jan
2002
22 Jan
'02
2:44 p.m.
Who would tell me, please, what is the simplest way to read a string from a file? Namely, what has one to set in place of `...' in the program main = putStr (...) to obtain instead of `...' a string contained in the file "foo.txt" ? Thank you in advance for the help. ----------------- Serge Mechveliani mechvel@botik.ru
22 Jan
22 Jan
3 p.m.
On Tue, 22 Jan 2002, S.D.Mechveliani wrote:
Who would tell me, please, what is the simplest way to read a string from a file? Namely, what has one to set in place of `...' in the program
main = putStr (...)
to obtain instead of `...' a string contained in the file "foo.txt" ?
main = readFile "foo.txt" >>= putStr -- Mark
8984
Age (days ago)
8984
Last active (days ago)
1 comments
2 participants
participants (2)
-
Mark Carroll -
S.D.Mechveliani