T
Takao Ueda
It seems pos is undefined for STDIN.
In order to use scanf for console input I had to change the line
start_position = pos
in class IO, def scanf(str, &b) in lib/ruby/1.8/scanf.rb into
if self == STDIN
start_position = 0
else
start_position = pos
end
Any ideas?
In order to use scanf for console input I had to change the line
start_position = pos
in class IO, def scanf(str, &b) in lib/ruby/1.8/scanf.rb into
if self == STDIN
start_position = 0
else
start_position = pos
end
Any ideas?