test.py with open("test.txt", "w") as outfile: outfile.write("Hello!") IDAPYTHON script Example C:\Users\this\Desktop>"C:\Program Files\IDA 7.1\idat.exe" -Stest.py test.idb Contents of text.txt Hello!