def read_binary(filename):
    """
        Write binary data to a file on disk
    """
    import struct
    data = []
    f = open(filename, 'rb')
    byte = f.read(1)
    while byte != b'':
        data.append(ord(byte))
        byte = f.read(1)
    f.close()
    return data
