selectInput()

Input / Files

Description

Opens a file chooser dialog to select an input file. Returns the selected path.

Syntax

std::string selectInput(std::string prompt, std::string filter)

Parameters

NameTypeDescription
promptstd::stringdialog message
filterstd::stringfile extension filter (optional)

Returns

std::string

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...