Re: Merging byte arrays

2009-04-11 Thread MRAB
Gabriel wrote: Hello I'm using this function to read data in byte format from file def readBytes(file, offset, size): file.seek(offset) return file.read(size) file is opened with open function: file = open(path, "rb") then i'm using array.array('B', bytes) to parse read-out data, for

Merging byte arrays

2009-04-11 Thread Gabriel
Hello I'm using this function to read data in byte format from file def readBytes(file, offset, size): file.seek(offset) return file.read(size) file is opened with open function: file = open(path, "rb") then i'm using array.array('B', bytes) to parse read-out data, for example in this