The FileChooser component prompts end users to select a file from their local filesystem.
This component should only be used directly from the Main Task of Interactive activities, and not from PBL scripts. Within the Main Task of the activity, set Implementation Type to Component, select the FileChooser component and method run.
userFile = run(FileChooser) display "Selected file: " + userFile + "\n"+ "Directory from where it was selected: " + FileChooser.dirName