2
Contributors
1
Reply
14
Views
1 Year
Discussion Span
Last Post by Gribouillis
0

It is very easy to write the output to a text file

with io.open(textfilename, mode='w', encoding='utf-8') as ofh:
    ofh.write(theoutput)

If you want to enter interactively a directory path to save the files, you have 2 solutions: either read the path in the console with the input() method or use a GUI form to select the directory. If your program is already using a gui module, there is probably already a widget to select a directory in your gui module.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.