reading from file

S.D.Mechveliani mechvel@math.botik.ru
Tue, 22 Jan 2002 17:44:56 +0300


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