1

I just want to take a string input from the user in erlang programming.

Jagan PJ
  • 9
  • 1
  • 5

1 Answers1

5

I think the function you're looking for is io:get_line/1:

1> io:get_line("enter data: ").
enter data: data with spaces
"data with spaces\n"
legoscia
  • 39,593
  • 22
  • 116
  • 167