>>>>> "A" == =?iso-8859-1?Q?Aleksi Niemel=E4?= <iso-8859-1> writes:

A>   class File
A>     def size
A>       FileTest.size(self.path)
A>     end
A>   end

A>   p File.new("file_size.rb").size

pigeon% cat b.rb
#!/usr/bin/ruby
class File
   def size
      FileTest.size(self.path)
   end
end
 
p File.size("b.rb")
a = File.new("b.rb", "a")
a.print "__END__"
p a.size
a.close
p File.size("b.rb")
pigeon% b.rb
183
183
190
pigeon% 



Guy Decoux