C-string or null
C-string or null
list of file type patterns
does not work on console
Selected file full name, null on cancel. In case of multiple files, the separator is |.
const TFD_Filter[] filters = [ { ["*.c" ], "C source code" }, { ["*.cpp", "*.cc", "*.C", "*.cxx", "*.c++"], "C++ source code" } ]; c_str filename = tinyfd_openFileDialog("Open a C/C++ File", null, filters, false); if (filename) tinyfd_messageBox("Chosen file is", filename, "ok", "info", 1);