>>>>> "M" == Mark Slagell <ms / iastate.edu> writes:

M> A Unix/Windows behavior difference:

 Well I don't know the difference (I don't have Windows : too expensive for
me) but #puts use $defout.

M>   puts 1
M>   dbg = File.new "debug.txt","w"
M>   $stdout = dbg
M>   puts 2
M>   $stdout = STDOUT
M>   dbg.close
M>   puts 3

 In your example, it's best  to redefine $defout, because it can be
different from $stdout.



Guy Decoux