so i tried your code and now i get:
ERROR: MethodError: no method matching read!(::IOStream, ::Base.RefValue{CINEheader})
Closest candidates are:
read!(::IO, ::BitArray) at bitarray.jl:2010
read!(::AbstractString, ::Any) at io.jl:161
read!(::IO, ::Array{UInt8,N} where N) at io.jl:387