これを
reopen.rb
STDOUT.reopen('tmp/outs/stdout', 'a')
while line = gets
print line
end
こう
reopen.rb
STDOUT.reopen('tmp/outs/stdout', 'a')
STDOUT.sync = true
while line = gets
print line
end
More than 5 years have passed since last update.
これを
STDOUT.reopen('tmp/outs/stdout', 'a')
while line = gets
print line
end
こう
STDOUT.reopen('tmp/outs/stdout', 'a')
STDOUT.sync = true
while line = gets
print line
end
Register as a new user and use Qiita more conveniently