Read from byte 6 to end-of-file : IO.read « File Directory « Ruby






Read from byte 6 to end-of-file

data = IO.read("data", nil, 6) # Read from byte 6 to end-of-file

 

Related examples in the same category

1.Read and return the entire file
2.Read 4 bytes starting at byte 2