File Directory Ruby

open('binary', 'rb') { |f| f.each_byte { |b| puts b } }