Reputation: 899
I would like to import some data from a .txt file. Right now I am doing it like so:
filename = "C:/results/results.txt"
file = open(filename, 'r')
lines = file.readlines()
file.close()
I wondering if there is way to have some dialog box, which will allow picking the right .txt file file, instead of supplying filename
variable. Like this:
Is it possible to get this dialog box without some custom python UI module (like tkinter or similar)? Is it possible to get it through System.Windows.Forms for example?
I am using python 2.7.
Thank you for the reply
Upvotes: 0
Views: 1693