def METHOD_NAME(path, charsize) -> int:
    with open(path, "w") as f:
        content = ""
        for i in range(charsize):
            content += str(i)
        f.write(content)
    return os.path.getsize(path)