How to select files from file explorer (windows)

Viewed 49

i'm learning C. So, the user need to choose a txt file to open. I would do it from file explorer. In Python, i'll do like that:

from tkinter import filedialog

filepath = filedialog.askopenfilename(initialdir="/", title="Select file", filetypes=(("ssp files", "*.ssp"),("all files", "*.*")))

so, i wanted to open a file explorer window to select the file. I searched online but couldn't find any. Anyone can help?

0 Answers
Related