V Forum

[ log in ]

Input

Rojzhack Apr 19 20:44
Hi there
import os

fn main() {
print('Enter your name:')
name := os.get_line()
println('Hello, $name!')
}

this code doesn't read input. The program exit without i can entering anything... i'm on Windows 10

Where is the problem? Thx
Jephrey Apr 21 07:59
Hi,
I tried it and it works for me. Also Windows 10.
Have you updated v (with 'v up')?
Rojzhack Apr 21 10:36
Hi,
very strange... today it works, i have not updated as i downloaded the latest release.
Anyway now it's all right
Thank you



Powered by Vorum, open-source blogging/forum software written in V