This invokes the Windows standard "file picker" dialog box, which lets you choose a file for opening or saving. Usage is:
filter = { txt = "Text files", ["*"] = "All files" }
filename = utils.filepicker (title, name, extension, filter, save)
- title - title to appear on the dialog box (eg. "Name of plugin")
- name - default name of file to be loaded/saved
- extension - default extension to use
- filter - table of file filters, see example above
- save - true for a "save" dialog, false for a "load" dialog
All arguments are optional.
Returns nil if dialog dismissed, or the chosen filename if not.