I am trying to select a file by using open_dialog() instead of defining the path of the file. However, after the prompt window is opened and I navigate to the file, I cannot really select it and the prompt window is not closed. Any further issues I need to do on the below MWE code?
using Gtk
#file = "C:/Users/.../My_file.txt";
file = open_dialog("My first file dialog")
filehandle = open("$file");
Netlist_lines = readlines(filehandle);
close(filehandle);
Netlist_lines[1][begin:3]
I see. thank you very much.
I am using VS code with julia v1.4.2 at win 11, and after I select the file and hit the open button, nothing is done.
any recommendation to solve it?
@stevengj Thank you. I have tried NativeFileDialog and it works in my case.
I have further issue that if I need to add a basic directory to the pick_file() such as I want the prompt window to open at first at this directory ““C:/Users/…”. Do you know what should I do?
I used the below, but it gave me an error”
Looks like an error coming from the underlying C library nativefiledialog … maybe it doesn’t like how you are specifying the path? e.g. try raw"C:\Users"