Hello List Have an IO String question

MikeKn22@aol.com MikeKn22@aol.com
Mon, 02 Apr 2001 20:57:44 EDT


  I am new to the list and to Haskell, and would appreciate any help anyone can give me on a problem I am having.  I am using Hugs98 in case that matters.
  My question involved reading from a file.  I used the line:
      readFile "c:/myfile.txt"

To read my file and this works fine.  I now want to take the contents of the file and use it in a function that takes in a String, but am getting an error since readFile returns an IO String.  Is there a way to convert an IO String to a normal String?  Thank you all.

Rob