0

I am learning ML. Can some one please help me out with basic input/output functions in ML?? I just want to read input from console and store it in a variable and use it in my ML program.

Please help. If you can point me towards some example for this also it would be super great!!! Thank you.

JJunior
  • 2,831
  • 16
  • 56
  • 66

1 Answers1

1
let val str = valOf (TextIO.inputLine TextIO.stdIn) in
  (* do stuff here *)
end
newacct
  • 119,665
  • 29
  • 163
  • 224