From: Roger Pack Date: 2009-02-08T00:34:40+09:00 Subject: Re: File#size Dylan Evans wrote: > How about file.stat.size ? ooh that's really close. I might want one that takes into account unflushed buffers, though. Apparently .stat.size doesn't quite. >> a.write 'abc' => 3 >> a.stat.size => 0 >> a.flush => # >> a.stat.size => 3 But at least it's pretty close. -=r -- Posted via http://www.ruby-forum.com/.