File Directory Ruby

file5 = File.new("C:\\Ruby\\Sample")
file5.each_byte{|ch| putc ch}