file_extra.sml 251 B

12345678910
  1. structure FileExtra = struct
  2. fun read file =
  3. let
  4. val inStream = TextIO.openIn file
  5. in
  6. (* TextIO.inputAll returns a TextIO.vector, which is a string. *)
  7. TextIO.inputAll inStream
  8. end;
  9. end;