2016-03-19 15 views

risposta

2
var f : File; 
discard f.open(0, fmRead) 

let s = f.readLine() 
echo "INPUT " & s 

... funziona - stdin ha handle di file 0

+0

mi dà 'foo.nims (2, 10) Errore: tentando di chiamare la routine non dichiarata: 'open'' io sono su 'Versione 0.13.0' – enthus1ast

+0

hmm ... Sto usando anche quella versione. Per me si risolve in http://nim-lang.org/docs/system.html#open,File,FileHandle,FileMode (FileHandle è solo cint) – shaunc

Problemi correlati