Mega Code Archive
Categories
/
Ruby
/
File Directory
Read 4 bytes starting at byte 2
data = IO.read("data", 4, 2) # Read 4 bytes starting at byte 2