Some versions, maybe all, of the windows libraries have a bug in 
File.size.
Make sure you have the latest win32 gems, it seems to help.

The 'gem outdated' and 'gem update' commands can help.

The only bug I've seen is on moderately sized files where the ruby code
closes the file then immediately checks the file size.  It came back as
zero.  I worked around it several versions ago, so my info is not as of 
today.


-- 
Posted via http://www.ruby-forum.com/.