#!/usr/bin/env python3 from argparse import ArgumentParser, FileType from struct import pack, unpack import json import re def str_array2json(input, output): if input.endswith(".bin"): # str_array.binからJSONへ with open(input, "rb") as f: offsets = [] while True: offset, = unpack("