Greg Hauptmann wrote:
> Hi,
> 
> I'm getting a negative number being returned for large files when using
> File.size()???  Any ideas?  One of my ruby books says an Integer can be any
> size??
> 
> I'm using:
> - File.size(path)
> - getting negative number responses for large files (e.g. -1001581 where
> file was really around 3.2GB)
> - using Windows XP
> - using ruby 1.8.5 (2006-08-25) [i386-mswin32]
> 
> thanks
> 

It's a bug in Ruby, not Windows.  You can use win32-file, which 
redefines File.size so that it works properly on Windows.

It uses win32-file-stat behind the scenes, so make sure you've got the 
latest releases of both win32-file (0.5.2) and win32-file-stat (1.2.3).

Regards,

Dan