# Pastebin lUFptCxp ``` class BinaryFileDataSource is Iterator[Array[U8] val] let _file: File let _msg_size: USize new iso create(path: FilePath val, msg_size: USize) => _file = File(path) _msg_size = msg_size fun ref has_next(): Bool => if _file.position() < _file.size() then true else false end fun ref next(): Array[U8] val => _file.read(_msg_size) ```