def METHOD_NAME(envmass, mass):
    """Write the .in files to disk."""
    nfiles = len(envmass)
    # Write the vpl.in file
    with open(path / "vpl.in", "w") as file:
        filenames = " ".join(["p%02d.in" % n for n in range(nfiles)])
        print(system % filenames, file=file)
    # Write the star file
    with open(path / "star.in", "w") as file:
        print(star, file=file)
    # Write each planet file
    for n in range(nfiles):
        with open(path / ("p%02d.in" % n), "w") as file:
            print(planet % (n, envmass[n], mass[n]), file=file)