Over a million developers have joined DZone.

Io Read File By Byte

·
// description of your code here


f = File.new("c\:\\test.txt")
checksum = 0
f.each_byte {|x| 
checksum = checksum+x 
puts checksum
}
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}