it will be read as a string so you can skip the quotes..
to remove the ballast (single trailing newline from a string) use "chomp" 
function

julia> user_input = chomp(readline());
asd

julia> user_input
"asd"


On Thursday, October 27, 2016 at 5:16:25 PM UTC+2, Aleksandr Mikheev wrote:
>
> 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!
>

Reply via email to