File Directory Ruby

f = open('binary')
f.read(500)                               
f.pos                                     
f.eof?                                    
f.close