Added File.foreach method.
Improved error management in File.new (Errno can be undefined)