chooseFile

Opens a file dialog to select a file to open. The dialog will open in the directory that the program was launched from. On a machine with no display, no dialog can be shown and null is returned.

Return

the selected file or null if no file was selected