INNER CODE UNIT · Python
markdown_string_to_file
mitre-attack/attack-scripts · scripts/diff_stix.py:525
def markdown_string_to_file(outfile, content):
"""
Print the string passed in to the indicated output file.
"""
verboseprint("writing markdown string to file... ", end="", flush="true")
outfile = open(outfile, "w")
outfile.write(content)
outfile.close()
verboseprint("done")
def layers_dict_to_files(outfiles, layers):
"""
Print the layers dict passed in to layer files.
"""