i am making a text editor with python and i need to know how convert _io.TextIOWrapper to string.
i am using filedialog from tkinter, and when i use askopenfile(initialdir = "/", title = 'Open', filetypes = (("Plain Text Files", "*.txt"),("All Files", "*.*"))), it gives me _io.TextIOWrapper. i need to derive the file path from this and convert to string as a variable, so i can just stick the variable in my open() function.
does anyone have any experiance with this?