All pastes #340224 Raw Edit

Miscellany

public ruby v1 · immutable
·published 2007-02-04 17:17 UTC
rendered paste body
#!/usr/bin/env rubyf = "/tmp/t.rb.tmp"File.open(f, "w") { |io| }s1 = File.stat(f)File.open(f, "w") { |io| io.print "hi" }s2 = File.stat(f)p [s1.size, s2.size, s1 == s2]