I see. Using %s does indeed work with ints, and chomp(readln()) works with strings. It's rather counter-intuitive, though. I wonder why there isn't a simpler way to do this, something like writeln() - you could input the variables as parameters and it would automatically read them...
- readf with strings GreatEmerald
- Re: readf with strings Ali Çehreli
- Re: readf with strings Dainius (GreatEmerald)
- Re: readf with strings Andrej Mitrovic
- Re: readf with strings Ali Çehreli
- Re: readf with strings Andrej Mitrovic
- Re: readf with strings Jimmy Cao
- Re: readf with strings Ali Çehreli
- Re: readf with strings bearophile
- Re: readf with strings Dainius (GreatEmerald)
- Re: readf with strings Kai Meyer
- Re: readf with strings Ali Çehreli
- Re: readf with strings Kai Meyer