> makes sense.  But unfortunately standard C does not provide the
> portable way to get the size of opened file.

Standard Ruby could, maybe.



class File
	def size
		foo = tell
		seek 0,2
		bar = tell
		seek foo,0
		bar
	end
end



matju