title: How to get a string from TextIO in sml/ml?
body: <p>I'm trying to read text from a file in SML.  Eventually, I want a list of individual words; however, I'm struggling at how to convert between a <code>TextIO.elem</code> to a <code>string</code>.  For example, if I write the following code it returns a <code>TextIO.elem</code> but I don't know how to convert it to a string so that I can concat it with another string</p>
  
  <p><code>TextIO.input1 inStream</code></p>