Hi guys...I’m new to GUIs on python!!!! 😩
I’ve got a question, I’m basically opening a .txt file and searching through the lines for a string; this string is found after a few 100 lines.
My aim is basically to have a GUI that opens the .txt (using a GUI dialog box) then have another dialog that “searches” through this file (for the given string)...and exports the the lines from one instance to the next...in a new .txt file!
I’d appreciate your help!!!
In python you can write to a txt file like this:
file = open('textfile.txt', 'w') file.write("content") file.close()