def file_to_hex_col(file):
    """Format the content of a file as a list of hex number (16 per line).

    :param file: path of the file
    :return: a formatted string
    """
    with open(file, 'rb') as f:
        values = f.read()
        space = 0
        res_str = ''
        for n in range(len(values)):
            value = values[n]
            space += 1
            if space % 16 != 0:
                res_str += "{:02X} ".format(value)
            else:
                res_str += "{:02X}".format(value)
        return res_str