""" `input(prompt::String="")::String`
Read a string from STDIN. The trailing newline is stripped. The prompt string, if given, is printed to standard output without a trailing newline before reading input. """ function input(prompt::String = "")::String print(prompt) return chomp(readline()) end El jueves, 27 de octubre de 2016, 10:16:25 (UTC-5), Aleksandr Mikheev escribió: > > Hello, > > How could I input a data from the console? For instance, I would like to > make such that user is able to input the value of x. Is there any way to do > it like in Fortran or something? I can't find anything in documentation. > > P.S. Also, I believe there is a way to input a string using readline() > function. However, if I do something like: > > a = readline() > "asd" > > then I will get "\"asd\"\r\n". > > How to avoid these excess symbols? > > Thank you in advance! >